summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 20:47:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 21:06:01 +0100
commit0d3df937f44b35da0f1d9a3a859020438f58f490 (patch)
tree85ed0a7e3265d037059493cd936aab15dcda9842 /sd
parentc47f9cc18769d253dc2d060011806195d247c288 (diff)
coverity#1213133 Dereference after null check
Change-Id: I6b4c1fb7001d7e85810e9c60eadcb378b79b48df
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuinsfil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx
index 84daeec317c3..5110cdb17fa1 100644
--- a/sd/source/ui/func/fuinsfil.cxx
+++ b/sd/source/ui/func/fuinsfil.cxx
@@ -345,7 +345,7 @@ bool FuInsertFile::InsSDDinDrMode(SfxMedium* pMedium)
bool bLink = pDlg->IsLink();
bool bReplace = false;
SdPage* pPage = NULL;
- ::sd::View* pView = mpViewShell->GetView();
+ ::sd::View* pView = mpViewShell ? mpViewShell->GetView() : NULL;
if (pView->ISA(OutlineView))
{