summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-07 16:10:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-07 18:00:51 +0100
commit88de419ea62736cae6724f909bfdb8bd68f5fed5 (patch)
tree5161f39d7726ce877c0b95907e4a506e9246a9cb /sw
parent8acf970d8a55271cd1565ee7b33ab26c88b70280 (diff)
coverity#704947 Dereference after null check
Change-Id: I3e2e3d78e84515cc6e1caa6e105762726d2b9e56
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/node.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index e7c8c6bf85ee..c514f5445bdd 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -956,7 +956,7 @@ void SwCntntNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewV
case RES_FMT_CHG:
// If the Format parent was switched, register the Attrset at the new one
// Skip own Modify!
- if( GetpSwAttrSet() &&
+ if( GetpSwAttrSet() && pNewValue &&
((SwFmtChg*)pNewValue)->pChangedFmt == GetRegisteredIn() )
{
// Attach Set to the new parent