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

coverity#704949 Dereference after null check

Change-Id: I25fbecbe3dd0c6a9f25b7641ac93842dba66abb7
üst 145d278b
......@@ -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 =
......
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