diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 10:53:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 15:47:23 +0100 |
commit | 4877271537b2924a9295702b5fc1cfe5b3e803c9 (patch) | |
tree | 23ec3540377e6a48b2c564b38401ea4ba14e9cb4 /svx | |
parent | c029a81a794204d41b7ed65a501d6775f7a37c18 (diff) |
coverity#1209523 Dereference after null check
Change-Id: If4c218c471b34e2f0c8f083131bc24f1ac9d48e3
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/imapwnd.cxx | 2 |
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 ); } |