summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-07 10:53:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-07 15:47:23 +0100
commit4877271537b2924a9295702b5fc1cfe5b3e803c9 (patch)
tree23ec3540377e6a48b2c564b38401ea4ba14e9cb4
parentc029a81a794204d41b7ed65a501d6775f7a37c18 (diff)
coverity#1209523 Dereference after null check
Change-Id: If4c218c471b34e2f0c8f083131bc24f1ac9d48e3
-rw-r--r--svx/source/dialog/imapwnd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx
index b341fc1faec0..e591947ae941 100644
--- a/svx/source/dialog/imapwnd.cxx
+++ b/svx/source/dialog/imapwnd.cxx
@@ -109,7 +109,7 @@ void IMapWindow::ReplaceImageMap( const ImageMap& rImageMap, bool /*bScaleToGrap
{
SdrObject* pNewObj = CreateObj( rImageMap.GetIMapObject( i - 1 ) );
- if ( pNewObj )
+ if (pNewObj && pPage)
{
pPage->InsertObject( pNewObj );
}