summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-25 10:19:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-25 12:33:20 +0000
commit145d278b2297a7ae2a1729c8bb9cb31b4aef3abf (patch)
tree4144b5532b065dd3c9b22fbe360af12e68e8e323 /sw
parent5fa0e2a400704548e85bd05731145303c2a9b694 (diff)
coverity#704947 Dereference after null check
Change-Id: Iff2a146e217bb6953525ee86ddc84d8c134ab8aa
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/node.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index f6cd10b63d21..c7d8b14338b4 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -928,6 +928,7 @@ void SwCntntNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewV
switch( nWhich )
{
case RES_OBJECTDYING :
+ if (pNewValue)
{
SwFmt * pFmt = (SwFmt *) ((SwPtrMsgPoolItem *)pNewValue)->pObject;