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

New commits:
commit 387e383b40f329e65b7c8136217403dddcecf6c3
Author: Caolán McNamara <caol...@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;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to