diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-09-05 16:29:08 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-09-13 14:24:44 +0200 |
commit | 1b23e6d533110f29f33766248913fdcc39bf1fe1 (patch) | |
tree | 7a8c9d82fa91fb2822bec1a5b88c6ed29ddc2a07 | |
parent | f09c7dc21b189dfccf10abaa2784f255df1e0968 (diff) |
cui: fix another plausible crash
Similar to 6633afe0ff18e5921eb96be2f863f28bd7e1110d
"fix crash in Hyperlink dialog"
Change-Id: Ia53ffeffaca775c66fb269e109d5fdb8c32d0066
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172917
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 6605f58aeddb21629b842040b81df55a29443fd0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172902
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172936
-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 8c65fdb47fd6..a971cd1145b0 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -216,10 +216,13 @@ IMPL_LINK_NOARG(SvxHyperlinkDocTp, ClickTargetHdl_Impl, weld::Button&, void) weld::WaitObject aWait(mpDialog->getDialog()); - if ( maStrURL.equalsIgnoreAsciiCase( INET_FILE_SCHEME ) ) - mxMarkWnd->RefreshTree ( "" ); - else - mxMarkWnd->RefreshTree ( maStrURL ); + if (mxMarkWnd) + { + if ( maStrURL.equalsIgnoreAsciiCase( INET_FILE_SCHEME ) ) + mxMarkWnd->RefreshTree ( "" ); + else + mxMarkWnd->RefreshTree ( maStrURL ); + } } else mxMarkWnd->SetError( LERR_DOCNOTOPEN ); |