summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-12 10:24:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-12 11:02:16 +0000
commit861643e63f60c8967659e03b7059ec2d6798c277 (patch)
tree4d2137e0efd104102d5f5c8dbaf6786f5f41dd4e /cui
parent936bcd6f9aafecc0db05e51e52ce6400812f3d37 (diff)
coverity#705462 Dereference null return value
Change-Id: Ic859f10a4fb70371f7616b4c17bb4c5040fd5051
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/paragrph.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx
index d08fcfd1f516..df84b7870678 100644
--- a/cui/source/tabpages/paragrph.cxx
+++ b/cui/source/tabpages/paragrph.cxx
@@ -381,6 +381,8 @@ sal_Bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet& rOutSet )
{
const SfxBoolItem* pBoolItem = (SfxBoolItem*)GetOldItem(
rOutSet, SID_ATTR_PARA_REGISTER);
+ if (!pBoolItem)
+ return bModified;
SfxBoolItem* pRegItem = (SfxBoolItem*)pBoolItem->Clone();
sal_uInt16 _nWhich = GetWhich( SID_ATTR_PARA_REGISTER );
bool bSet = pRegItem->GetValue();