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

coverity#735915 Dereference after null check

Change-Id: I6a846af53a2e3492905d9c89e7e55da8778405a5
üst 297df443
...@@ -1945,7 +1945,7 @@ void SwCntntFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew ) ...@@ -1945,7 +1945,7 @@ void SwCntntFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem * pNew )
{ {
sal_uInt8 nInvFlags = 0; sal_uInt8 nInvFlags = 0;
if( pNew && RES_ATTRSET_CHG == pNew->Which() ) if( pNew && RES_ATTRSET_CHG == pNew->Which() && pOld )
{ {
SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() ); SfxItemIter aNIter( *((SwAttrSetChg*)pNew)->GetChgSet() );
SfxItemIter aOIter( *((SwAttrSetChg*)pOld)->GetChgSet() ); SfxItemIter aOIter( *((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