summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-27 09:06:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-27 12:13:47 +0200
commitd4a037a1d9e6331b7ff3423ef34b8c06530c55fc (patch)
tree4747c9c4819afd62b3a837d16676df2594b86147 /sc
parentfb6a7f553ecbfcd921bca65fff9d9536ab97c781 (diff)
cid#1454002 Dereference after null check
Change-Id: I855922a70b615b8ac4de147d081d530edcc5be63 Reviewed-on: https://gerrit.libreoffice.org/79674 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputhdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index b7f61da9fcc7..f7d04468f46b 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -3770,7 +3770,7 @@ void ScInputHandler::NotifyChange( const ScInputHdlState* pState,
{
ScModule* pScMod = SC_MOD();
- ScTabViewShell* pScTabViewShell = pScMod ? dynamic_cast<ScTabViewShell*>(pScMod->GetViewShell()) : nullptr;
+ ScTabViewShell* pScTabViewShell = dynamic_cast<ScTabViewShell*>(pScMod->GetViewShell());
// Also take foreign reference input into account here (e.g. FunctionsAutoPilot),
// FormEditData, if we're switching from Help to Calc: