From 2fc3b4173f3e5a539a7cf596dffe7067a8a3ec09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 23 May 2014 13:16:52 +0100 Subject: [PATCH] coverity#1078582 Dereference after null check Change-Id: I3b972510871f36a3c7877b38d3a012aa88acf4c5 --- sd/source/ui/docshell/docshel4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();