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

coverity#704848 Dereference after null check

Change-Id: I454f350863a540c2e686550e3e7ff16b3a33ba19
üst 742f22b4
......@@ -277,7 +277,7 @@ void SwFmt::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue )
}
break;
case RES_ATTRSET_CHG:
if( ((SwAttrSetChg*)pOldValue)->GetTheChgdSet() != &aSet )
if (pOldValue && pNewValue && ((SwAttrSetChg*)pOldValue)->GetTheChgdSet() != &aSet)
{
// pass only those that are not set
SwAttrSetChg aOld( *(SwAttrSetChg*)pOldValue );
......
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