coverity#1078582 Dereference after null check

Change-Id: I3b972510871f36a3c7877b38d3a012aa88acf4c5
This commit is contained in:
Caolán McNamara 2014-05-23 13:16:52 +01:00
parent a5a1f885f0
commit 2fc3b4173f

View File

@ -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();