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

coverity#704792 Dereference after null check

Change-Id: Ie6f3174266dfa42a1eff81df45fc408656d4fbd9
üst 7096a32e
......@@ -2101,10 +2101,14 @@ bool SfxCustomPropertiesPage::FillItemSet( SfxItemSet& rSet )
}
bModified = true; //!!!
if ( bModified )
rSet.Put( *pInfo );
if ( bMustDelete )
delete pInfo;
if (pInfo)
{
if ( bModified )
rSet.Put( *pInfo );
if ( bMustDelete )
delete pInfo;
}
return bModified;
}
......
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