[Libreoffice-commits] core.git: sd/source

Caolán McNamara caolanm at redhat.com
Sat May 21 09:09:32 UTC 2016


 sd/source/ui/docshell/docshel3.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 387e383b40f329e65b7c8136217403dddcecf6c3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat May 21 10:08:47 2016 +0100

    coverity#1209589 Dereference after null check
    
    Change-Id: Icb08a505a547ff0b2fe49dcf4ff560d4718daffd

diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx
index c8fe3f4..826acad 100644
--- a/sd/source/ui/docshell/docshel3.cxx
+++ b/sd/source/ui/docshell/docshel3.cxx
@@ -320,7 +320,8 @@ void DrawDocShell::Execute( SfxRequest& rReq )
 
         case SID_NOTEBOOKBAR:
         {
-            sfx2::SfxNotebookBar::ExecMethod(mpViewShell->GetFrame()->GetBindings());
+            if (mpViewShell)
+                sfx2::SfxNotebookBar::ExecMethod(mpViewShell->GetFrame()->GetBindings());
         }
         break;
 


More information about the Libreoffice-commits mailing list