summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-24 10:00:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-24 12:12:24 +0000
commit757da44c04fc1a75d8e304cb945f02a02c19b7af (patch)
tree34bb915e88dd9628b5b363bf93d7e318de079874 /sw
parentd83f3d4a228e98be19906d0a82f9d79f6a92e80d (diff)
coverity#704958 Dereference after null check
Change-Id: I08138c5d7124e6212708aa74f605c3997ca442f1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoidx.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 94b785ad1da3..b299e0a0e5e9 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -921,7 +921,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
SwXTextSection::CreateXTextSection( pSectionFmt );
aRet <<= xContentSect;
}
- else
+ else if (pSectionFmt)
{
SwSections aSectArr;
pSectionFmt->GetChildSections(aSectArr,