summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-08 08:34:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-08 09:17:06 +0100
commit513a3a6a01679046d354f9acc75d98d9e97979db (patch)
tree52fc3f3b1911aa6adeb77f3c7186746f25005cc8 /sw
parentd396d5b47876f47b51d3ba42861895e86831738b (diff)
coverity#704947 Dereference after null check
Change-Id: Id6eb50de48b8a674d7b48d1256b1529637155eb1
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 5f490f1cf979..cc73f02836f7 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -990,7 +990,7 @@ void SwCntntNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewV
break;
case RES_UPDATE_ATTR:
- if( GetNodes().IsDocNodes() && IsTxtNode() )
+ if (GetNodes().IsDocNodes() && IsTxtNode() && pNewValue)
{
const sal_uInt16 nTmp = ((SwUpdateAttr*)pNewValue)->getWhichAttr();
if ( RES_ATTRSET_CHG == nTmp )