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

coverity#704988 Dereference after null check

Change-Id: I641f9cf087cb2cd7f26daa70c886f174a8404ba9
üst 7e8ce6c6
......@@ -906,7 +906,7 @@ void SwHTMLParser::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )
switch( pOld ? pOld->Which() : pNew ? pNew->Which() : 0 )
{
case RES_OBJECTDYING:
if( ((SwPtrMsgPoolItem *)pOld)->pObject == GetRegisteredIn() )
if (pOld && ((SwPtrMsgPoolItem *)pOld)->pObject == GetRegisteredIn())
{
// dann uns selbst beenden
GetRegisteredInNonConst()->Remove( this );
......
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