summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-24 15:15:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-24 15:15:44 +0000
commit8e375ba24da264cc4d711b535c547a2546435475 (patch)
tree1828fc4fe5d9941f1240b36dfb2205b6001824db /svx/source
parent6cfce6ead21a1c6c985d3d79cef6c584abbc7e8e (diff)
coverity#1265799 Dereference null return value
Change-Id: I7f1838b55d7b526327efb0562f3ad1ab5a1778a1
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/imapdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index 6866020c4004..0ac7de5d3951 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -109,9 +109,9 @@ SvxIMapDlgChildWindow::SvxIMapDlgChildWindow( vcl::Window* _pParent, sal_uInt16
void SvxIMapDlgChildWindow::UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap,
const TargetList* pTargetList, void* pEditingObj )
{
- if ( SfxViewFrame::Current() &&
- SfxViewFrame::Current()->HasChildWindow( SvxIMapDlgChildWindow::GetChildWindowId() ) )
- SVXIMAPDLG()->UpdateLink( rGraphic, pImageMap, pTargetList, pEditingObj );
+ SvxIMapDlg* pDlg = SVXIMAPDLG();
+ if (pDlg)
+ pDlg->UpdateLink(rGraphic, pImageMap, pTargetList, pEditingObj);
}
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeStatusBar(vcl::Window *pParent, VclBuilder::stringmap &)