diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 20:47:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:06:01 +0100 |
commit | 0d3df937f44b35da0f1d9a3a859020438f58f490 (patch) | |
tree | 85ed0a7e3265d037059493cd936aab15dcda9842 /sd | |
parent | c47f9cc18769d253dc2d060011806195d247c288 (diff) |
coverity#1213133 Dereference after null check
Change-Id: I6b4c1fb7001d7e85810e9c60eadcb378b79b48df
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuinsfil.cxx | 2 |
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)) { |