summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-22 12:24:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-22 15:17:08 +0200
commit25747014cd54d66f55029f67886418b859f9b980 (patch)
tree43a775b4be46e2da7df86e8e479f8d7f67b0d747 /sc
parent1a9c3c13cb5c652d7bc92618e0f1bebf58ed76c6 (diff)
cid#1504538 Dereference after null check
and cid#1504536 Dereference after null check Change-Id: If727df50e9e375b0ebd30e7537ac3d88ad72dc11 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134731 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/miscdlgs/redcom.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/miscdlgs/redcom.cxx b/sc/source/ui/miscdlgs/redcom.cxx
index 30e2f8a591a9..f81da032b481 100644
--- a/sc/source/ui/miscdlgs/redcom.cxx
+++ b/sc/source/ui/miscdlgs/redcom.cxx
@@ -129,7 +129,7 @@ void ScRedComDialog::Execute()
void ScRedComDialog::SelectCell()
{
- if(pChangeAction==nullptr)
+ if (!pChangeAction || !pDocShell)
return;
const ScChangeAction* pAction=pChangeAction;