summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
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 c8ed1de2fa6b..52bda50b47ef 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 ( u""_ustr );
- else
- mxMarkWnd->RefreshTree ( maStrURL );
+ if (mxMarkWnd)
+ {
+ if ( maStrURL.equalsIgnoreAsciiCase( INET_FILE_SCHEME ) )
+ mxMarkWnd->RefreshTree ( u""_ustr );
+ else
+ mxMarkWnd->RefreshTree ( maStrURL );
+ }
}
else
mxMarkWnd->SetError( LERR_DOCNOTOPEN );