[Libreoffice-commits] core.git: sc/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Sun Apr 28 10:05:02 UTC 2019
sc/source/ui/view/cellsh3.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 66d5e422cd81f8eadf215929d626ea8859263f56
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Apr 28 12:10:19 2019 +0300
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sun Apr 28 12:04:25 2019 +0200
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 at collabora.com>
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);
More information about the Libreoffice-commits
mailing list