summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-09-05 12:11:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-09-05 13:51:07 +0200
commit6633afe0ff18e5921eb96be2f863f28bd7e1110d (patch)
tree5c1ae7abf0af7cb723042ff6d80c8773d7cd9e08 /cui
parent5c64b81b4d5bd347e57ba156bb0c34d09fb6aa5b (diff)
fix crash in Hyperlink dialog
which I managed to trigger by hitting escape repeatedly while it was trying to load the targets window Change-Id: I4c7cb3a30104c58bfc6652923a0aa2169c1bf3bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172907 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/hldoctp.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx
index b414309bea0b..c8ed1de2fa6b 100644
--- a/cui/source/dialogs/hldoctp.cxx
+++ b/cui/source/dialogs/hldoctp.cxx
@@ -253,10 +253,13 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, void)
{
weld::WaitObject aWait(mpDialog->getDialog());
- if ( maStrURL.equalsIgnoreAsciiCase( INET_FILE_SCHEME ) )
- mxMarkWnd->RefreshTree ( u""_ustr );
- else
- mxMarkWnd->RefreshTree ( maStrURL );
+ if (mxMarkWnd)
+ {
+ if ( maStrURL.equalsIgnoreAsciiCase( INET_FILE_SCHEME ) )
+ mxMarkWnd->RefreshTree ( u""_ustr );
+ else
+ mxMarkWnd->RefreshTree ( maStrURL );
+ }
}
}