summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-08 15:52:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-08 16:26:27 +0100
commit1fd45ad6ae41b22bd72aa24e2da1d8115cb4ea8b (patch)
tree775e598708aaae30eca4fad3cdefc537e577ace8 /sd
parenta20e145cf901f6589ca96e3a4a5ded413eb20907 (diff)
coverity#704753 Dereference after null check
Change-Id: Id07ece047e9352bdd63408810662803be86cd4bc
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fupage.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/func/fupage.cxx b/sd/source/ui/func/fupage.cxx
index 9ed4ca4f1fe6..6bfa2e365689 100644
--- a/sd/source/ui/func/fupage.cxx
+++ b/sd/source/ui/func/fupage.cxx
@@ -165,6 +165,9 @@ void FuPage::Deactivate()
const SfxItemSet* FuPage::ExecuteDialog( Window* pParent )
{
+ if (!mpDrawViewShell)
+ return NULL;
+
PageKind ePageKind = mpDrawViewShell->GetPageKind();
SfxItemSet aNewAttr(mpDoc->GetPool(),