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

coverity#704947 Dereference after null check

Change-Id: I3e2e3d78e84515cc6e1caa6e105762726d2b9e56
üst 8acf970d
......@@ -956,7 +956,7 @@ void SwCntntNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewV
case RES_FMT_CHG:
// If the Format parent was switched, register the Attrset at the new one
// Skip own Modify!
if( GetpSwAttrSet() &&
if( GetpSwAttrSet() && pNewValue &&
((SwFmtChg*)pNewValue)->pChangedFmt == GetRegisteredIn() )
{
// Attach Set to the new parent
......
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