summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-05 09:14:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-02-05 11:35:01 +0100
commit8b15deceaa54ed20c2ce4199cd54baaec26ae2c2 (patch)
tree24f70a327dc9b881dd2a26cbe3102419df871758 /sc
parent506bacb79ab96656de9168d0db3e3159c6bde3b0 (diff)
cid#1472785 Dereference before null check
Change-Id: I6e07e76be11b52873ee27054f7317996701223a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110456 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/cellsh1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 8056fccb01f8..6b1c50b3e011 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2787,7 +2787,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl();
- if(param3 && param4 && pInputHdl && pTabViewShell)
+ if (param3 && param4 && pInputHdl)
{
ScViewData& rData = pTabViewShell->GetViewData();
ScTabView* pTabView = rData.GetView();