diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 14:03:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 20:00:36 +0200 |
commit | fe107c1a32b999af409e902cffb6f26c11818203 (patch) | |
tree | 7f80113df6de281a071bbc58517e07c343368bc4 /sc | |
parent | 4a3466851c22920aa57443cb31b8f0c57d6c73ce (diff) |
cid#1467974 Dereference before null check
Change-Id: Ic612cb420934764c42cca08d09915bdc8332cb2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104171
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 688e52d3f54a..35212b04a138 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -343,7 +343,7 @@ void ScModule::Execute( SfxRequest& rReq ) { bool bSet; const SfxPoolItem* pItem; - if (pReqArgs->HasItem(FN_PARAM_1, &pItem)) + if (pReqArgs && pReqArgs->HasItem(FN_PARAM_1, &pItem)) bSet = static_cast<const SfxBoolItem*>(pItem)->GetValue(); else if ( pReqArgs && SfxItemState::SET == pReqArgs->GetItemState( nSlot, true, &pItem ) ) bSet = static_cast<const SfxBoolItem*>(pItem)->GetValue(); |