summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-26 21:13:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-26 21:25:19 +0100
commit7ce763089b221cd603bba70054e6efb5bdeecbf4 (patch)
tree2f314071a2afaa4bc704984a16ac28dfde195315 /sd
parenta01783051a8f35370b49a5838bf4928b6a50a19a (diff)
coverity#704759 Dereference after null check
Change-Id: I1f41d2bc43391175a4587f501f02775adc43bc8e
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/futempl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/func/futempl.cxx b/sd/source/ui/func/futempl.cxx
index 8ff19b53d5c9..303e0b34aef9 100644
--- a/sd/source/ui/func/futempl.cxx
+++ b/sd/source/ui/func/futempl.cxx
@@ -154,7 +154,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
}
}
- if (pArgs->GetItemState(nSId) == SFX_ITEM_SET)
+ if (pArgs && pArgs->GetItemState(nSId) == SFX_ITEM_SET)
aStyleName = ( ( (const SfxStringItem &) pArgs->Get( nSId ) ).GetValue() );
}
}
@@ -171,7 +171,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
}
pStyleSheet = &pSSPool->Make( aStyleName, (SfxStyleFamily) nFamily, SFXSTYLEBIT_USERDEF );
- if (pArgs->GetItemState(SID_STYLE_REFERENCE) == SFX_ITEM_ON)
+ if (pArgs && pArgs->GetItemState(SID_STYLE_REFERENCE) == SFX_ITEM_ON)
{
OUString aParentName(((const SfxStringItem&) pArgs->Get(SID_STYLE_REFERENCE)).GetValue());
pStyleSheet->SetParent(aParentName);