diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-21 10:08:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-21 10:08:47 +0100 |
commit | 387e383b40f329e65b7c8136217403dddcecf6c3 (patch) | |
tree | 37a199dd9010a3ba424d1de1ca2bae2a776c8a46 /sd | |
parent | 42fd75d4af0205e8eb3538060dc3a94b8e77fd3b (diff) |
coverity#1209589 Dereference after null check
Change-Id: Icb08a505a547ff0b2fe49dcf4ff560d4718daffd
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/docshell/docshel3.cxx | 3 |
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; |