summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-30 14:52:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-30 15:54:55 +0100
commit535780bd4b911cb86b3587cead72ea15d23df871 (patch)
tree95da11b4a358693b3c3f96256417247b135f49b0 /svx
parentdf903c3e2084d8cc33e3935a1668b8b46e25201f (diff)
coverity#704809 Explicit null dereferenced
Change-Id: I8febb74648b409e214e805084682d932424252b3
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctl3d.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx
index a1e20bf28a05..f912768db75c 100644
--- a/svx/source/dialog/dlgctl3d.cxx
+++ b/svx/source/dialog/dlgctl3d.cxx
@@ -224,8 +224,11 @@ void Svx3DPreviewControl::SetObjectType(sal_uInt16 nType)
break;
}
- mpScene->Insert3DObj( mp3DObj );
- mp3DObj->SetMergedItemSet(aSet);
+ if (mp3DObj)
+ {
+ mpScene->Insert3DObj( mp3DObj );
+ mp3DObj->SetMergedItemSet(aSet);
+ }
Resize();
}