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

coverity#1314998 Dereference null return value

Change-Id: I1f36c486b404d189f2f39a525ec3fd2e1710e7af
üst 11969c48
...@@ -1442,13 +1442,14 @@ void SwRegHistory::_MakeSetWhichIds() ...@@ -1442,13 +1442,14 @@ void SwRegHistory::_MakeSetWhichIds()
if( pSet && pSet->Count() ) if( pSet && pSet->Count() )
{ {
SfxItemIter aIter( *pSet ); SfxItemIter aIter( *pSet );
sal_uInt16 nW = aIter.FirstItem()->Which(); const SfxPoolItem* pItem = aIter.FirstItem();
while( true ) while(pItem)
{ {
sal_uInt16 nW = pItem->Which();
m_WhichIdSet.insert( nW ); m_WhichIdSet.insert( nW );
if( aIter.IsAtEnd() ) if( aIter.IsAtEnd() )
break; break;
nW = aIter.NextItem()->Which(); pItem = aIter.NextItem();
} }
} }
} }
......
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