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

coverity#1265795 Dereference null return value

Change-Id: I3ad219b1729a7a4b2f3e52cd6ac0243a419bc632
üst 3768b305
...@@ -343,10 +343,10 @@ void DrawViewShell::GetBmpMaskState( SfxItemSet& rSet ) ...@@ -343,10 +343,10 @@ void DrawViewShell::GetBmpMaskState( SfxItemSet& rSet )
if ( GetViewFrame()->HasChildWindow( nId ) ) if ( GetViewFrame()->HasChildWindow( nId ) )
{ {
SvxBmpMask* pDlg = static_cast<SvxBmpMask*>( GetViewFrame()->GetChildWindow( nId )->GetWindow() ); SfxChildWindow* pWnd = GetViewFrame()->GetChildWindow(nId);
SvxBmpMask* pDlg = pWnd ? static_cast<SvxBmpMask*>(pWnd->GetWindow()) : NULL;
if ( pDlg->NeedsColorList() ) if (pDlg && pDlg->NeedsColorList())
pDlg->SetColorList( GetDoc()->GetColorList() ); pDlg->SetColorList(GetDoc()->GetColorList());
} }
if ( rMarkList.GetMarkCount() == 1 ) if ( rMarkList.GetMarkCount() == 1 )
......
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