sc/source/ui/view/cellsh3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 66d5e422cd81f8eadf215929d626ea8859263f56
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Apr 28 12:10:19 2019 +0300
Commit:     Mike Kaganski <[email protected]>
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 <[email protected]>

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);
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to