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

coverity#704880 Dereference after null check

Change-Id: Id4541f939731875a14e076779da475f274a76bd7
üst 70bfc1ac
...@@ -416,6 +416,7 @@ void SwSection::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) ...@@ -416,6 +416,7 @@ void SwSection::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
switch( pOld ? pOld->Which() : pNew ? pNew->Which() : 0 ) switch( pOld ? pOld->Which() : pNew ? pNew->Which() : 0 )
{ {
case RES_ATTRSET_CHG: case RES_ATTRSET_CHG:
if (pNew && pOld)
{ {
SfxItemSet* pNewSet = ((SwAttrSetChg*)pNew)->GetChgSet(); SfxItemSet* pNewSet = ((SwAttrSetChg*)pNew)->GetChgSet();
SfxItemSet* pOldSet = ((SwAttrSetChg*)pOld)->GetChgSet(); SfxItemSet* pOldSet = ((SwAttrSetChg*)pOld)->GetChgSet();
......
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