diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 12:10:19 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 12:04:25 +0200 |
commit | 66d5e422cd81f8eadf215929d626ea8859263f56 (patch) | |
tree | c606f09af2428eb2e8838908bd3bdca55ad70d99 | |
parent | 364b59dc479091ed8f763609c67783036652a090 (diff) |
tdf#120703 PVS: Check potentially null pointer before use
V595 The 'pHdl' pointer was utilized before it was verified against nullptr.
Check lines: 192, 197.
Change-Id: I52e1d1eadaded8616b8a27e0fcfaf6d1e6baa03e
Reviewed-on: https://gerrit.libreoffice.org/71455
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | sc/source/ui/view/cellsh3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx index b8e754af336b..3f1569bfa405 100644 --- a/sc/source/ui/view/cellsh3.cxx +++ b/sc/source/ui/view/cellsh3.cxx @@ -182,7 +182,7 @@ void ScCellShell::Execute( SfxRequest& rReq ) GetViewData()->GetTabNo(), aStr ); } - else + else if (pHdl) { SC_MOD()->SetInputMode(SC_INPUT_TABLE); |