diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 10:20:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 12:33:20 +0000 |
commit | 3f731937454f47eec2d66ef8f61ef4bc097fb588 (patch) | |
tree | 3f3480ad6aa61cf26507ff2556729012ef1998ea /sw | |
parent | 145d278b2297a7ae2a1729c8bb9cb31b4aef3abf (diff) |
coverity#704949 Dereference after null check
Change-Id: I25fbecbe3dd0c6a9f25b7641ac93842dba66abb7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/undo/rolbck.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx index 0dd4162e4577..1ff07ebee59f 100644 --- a/sw/source/core/undo/rolbck.cxx +++ b/sw/source/core/undo/rolbck.cxx @@ -1308,7 +1308,7 @@ void SwRegHistory::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) { m_pHistory->Add( pOld, pNew, m_nNodeIndex ); } - else if ( RES_ATTRSET_CHG == pNew->Which() ) + else if (pOld && RES_ATTRSET_CHG == pNew->Which()) { SwHistoryHint* pNewHstr; const SfxItemSet& rSet = |