diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 13:16:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 14:16:13 +0100 |
commit | 2fc3b4173f3e5a539a7cf596dffe7067a8a3ec09 (patch) | |
tree | 0fbdbabadbb21bbf9d1eae22cfff4bf43f7a1e81 /sd | |
parent | a5a1f885f080bc6e2053b86cc3a71bfa912f9bbd (diff) |
coverity#1078582 Dereference after null check
Change-Id: I3b972510871f36a3c7877b38d3a012aa88acf4c5
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index 654d6a8f204a..2882d0c43b9c 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -823,7 +823,7 @@ bool DrawDocShell::GotoBookmark(const OUString& rBookmark) } } - SfxBindings& rBindings = (pDrawViewShell->GetViewFrame()!=NULL + SfxBindings& rBindings = ((pDrawViewShell && pDrawViewShell->GetViewFrame()!=NULL) ? pDrawViewShell->GetViewFrame() : SfxViewFrame::Current() )->GetBindings(); |