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)
if( !bProtect )
{
sal_uInt16 nId = SvxContourDlgChildWindow::GetChildWindowId();
SvxIMapDlg *pDlg = pVFrame->HasChildWindow( nId ) ?
static_cast<SvxIMapDlg*>( pVFrame->GetChildWindow( nId )
->GetWindow()) : 0;
SfxChildWindow *pChildWindow = pVFrame->HasChildWindow(nId) ?
pVFrame->GetChildWindow(nId) : 0;
SvxIMapDlg *pDlg = pChildWindow ?
static_cast<SvxIMapDlg*>(pChildWindow->GetWindow()) : 0;
if( pDlg && pDlg->GetEditingObject() !=
rSh.GetIMapInventor() )
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