summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-22 21:04:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:28:22 +0000
commitfedebb269e815a3475cefc21556031e09bb3f35e (patch)
treebb29e29b62e43693623cc5fc7475b856060336af /sw
parent7e8ce6c6662add1ce10e2fda2cdd236c30c240ae (diff)
coverity#704988 Dereference after null check
Change-Id: I641f9cf087cb2cd7f26daa70c886f174a8404ba9
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/swhtml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 4ac03782ad48..1bc33ef99df0 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -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 );