diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-05 12:11:27 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-09-05 16:25:53 +0200 |
commit | c7dec46a7dae581ed7c0a7493c7a33fbb157d0b7 (patch) | |
tree | 83ffde8cb52525d7c9ce21d1856245b05fd8c4fa /cui | |
parent | 0b7d91a53dfea8d1a4e6234dc7c72c0337eedd3a (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
(cherry picked from commit 6633afe0ff18e5921eb96be2f863f28bd7e1110d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172894
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 11 |
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 ); + } } } |