diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-09 09:55:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-09 12:42:59 +0200 |
commit | 2a691bfb8c749d25d8776f16977441f927cd3cd7 (patch) | |
tree | 9d62d228fde30f7bb2be2962ee4ce1938e96c7e9 | |
parent | e5edf213a99e8936e1a170673ad1c50b3d7120cd (diff) |
cid#1465235 Dereference null return value
Change-Id: I73efddfeca873e43f1505790eebf260c27e248de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98408
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/source/dialogs/hltpbase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx index b3c7b076f1ca..63d3eb1738c1 100644 --- a/cui/source/dialogs/hltpbase.cxx +++ b/cui/source/dialogs/hltpbase.cxx @@ -331,7 +331,7 @@ IMPL_LINK_NOARG(SvxHyperlinkTabPageBase, ClickScriptHdl_Impl, weld::Button&, voi SvxHyperlinkItem *pHyperlinkItem = const_cast<SvxHyperlinkItem*>(static_cast<const SvxHyperlinkItem *>( GetItemSet().GetItem (SID_HYPERLINK_GETLINK))); - if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE ) + if (!pHyperlinkItem || pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE) return; // get macros from itemset |