summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-05-21 10:08:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-05-21 10:08:47 +0100
commit387e383b40f329e65b7c8136217403dddcecf6c3 (patch)
tree37a199dd9010a3ba424d1de1ca2bae2a776c8a46 /sd
parent42fd75d4af0205e8eb3538060dc3a94b8e77fd3b (diff)
coverity#1209589 Dereference after null check
Change-Id: Icb08a505a547ff0b2fe49dcf4ff560d4718daffd
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/docshell/docshel3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx
index c8fe3f4dd0f3..826acad997e0 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;