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

coverity#1266467 Dereference null return value

Change-Id: I3c4f4b64c0247ba849df3f74e385b36b020a0da1
üst 3edd1e69
...@@ -1465,7 +1465,7 @@ void SwBaseShell::GetState( SfxItemSet &rSet ) ...@@ -1465,7 +1465,7 @@ void SwBaseShell::GetState( SfxItemSet &rSet )
else else
{ {
SvxIMapDlg *pDlg = GetIMapDlg(GetView()); SvxIMapDlg *pDlg = GetIMapDlg(GetView());
if( pDlg->GetEditingObject() != rSh.GetIMapInventor() ) if (pDlg && pDlg->GetEditingObject() != rSh.GetIMapInventor())
lcl_UpdateIMapDlg( rSh ); lcl_UpdateIMapDlg( rSh );
} }
} }
......
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