summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-06 10:36:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-06 11:57:47 +0000
commit1459ce2f6dbc316b284f1720cc3323e30842c07c (patch)
treedbb400b6f8e283e17070dcbfe92a9e2a8de4486d /sw
parentcoverity#704882 Dereference after null check (diff)
downloadcore-1459ce2f6dbc316b284f1720cc3323e30842c07c.tar.gz
core-1459ce2f6dbc316b284f1720cc3323e30842c07c.zip
coverity#704880 Dereference after null check
Change-Id: Id4541f939731875a14e076779da475f274a76bd7
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/section.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 24fc8f49d783..df34c73bd0d1 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -416,6 +416,7 @@ void SwSection::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
switch( pOld ? pOld->Which() : pNew ? pNew->Which() : 0 )
{
case RES_ATTRSET_CHG:
+ if (pNew && pOld)
{
SfxItemSet* pNewSet = ((SwAttrSetChg*)pNew)->GetChgSet();
SfxItemSet* pOldSet = ((SwAttrSetChg*)pOld)->GetChgSet();