Kaydet (Commit) f9c3d4e8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1266469 Dereference null return value

Change-Id: I87318ba286ad2d8ded5d3e467b7a1e371318bef8
üst dbf60189
...@@ -1263,9 +1263,10 @@ IMPL_LINK_NOARG(SwBaseShell, GraphicArrivedHdl) ...@@ -1263,9 +1263,10 @@ IMPL_LINK_NOARG(SwBaseShell, GraphicArrivedHdl)
if( !bProtect ) if( !bProtect )
{ {
sal_uInt16 nId = SvxContourDlgChildWindow::GetChildWindowId(); sal_uInt16 nId = SvxContourDlgChildWindow::GetChildWindowId();
SvxIMapDlg *pDlg = pVFrame->HasChildWindow( nId ) ? SfxChildWindow *pChildWindow = pVFrame->HasChildWindow(nId) ?
static_cast<SvxIMapDlg*>( pVFrame->GetChildWindow( nId ) pVFrame->GetChildWindow(nId) : 0;
->GetWindow()) : 0; SvxIMapDlg *pDlg = pChildWindow ?
static_cast<SvxIMapDlg*>(pChildWindow->GetWindow()) : 0;
if( pDlg && pDlg->GetEditingObject() != if( pDlg && pDlg->GetEditingObject() !=
rSh.GetIMapInventor() ) rSh.GetIMapInventor() )
lcl_UpdateContourDlg( rSh, nsSelectionType::SEL_GRF ); lcl_UpdateContourDlg( rSh, nsSelectionType::SEL_GRF );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment