summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-08 15:56:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-08 16:26:27 +0100
commita18dc050bc282a9aa086091f6b0848a3311c79be (patch)
tree1ec39e6f62ea052ca5d422831a950bab70c111df
parent1fd45ad6ae41b22bd72aa24e2da1d8115cb4ea8b (diff)
coverity#704759 Dereference after null check
Change-Id: Id29fa14b8e7dd587c357c90f07b3858dcd931477
-rw-r--r--sd/source/ui/func/futempl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/func/futempl.cxx b/sd/source/ui/func/futempl.cxx
index c063428acb8c..289bb09aced7 100644
--- a/sd/source/ui/func/futempl.cxx
+++ b/sd/source/ui/func/futempl.cxx
@@ -255,7 +255,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
{
if( !SD_MOD()->GetWaterCan() )
{
- if( pArgs->GetItemState( nSId ) == SFX_ITEM_SET )
+ if (pArgs && pArgs->GetItemState( nSId ) == SFX_ITEM_SET)
{
aStyleName = ( ( (const SfxStringItem &) pArgs->Get( nSId ) ).GetValue() );
SD_MOD()->SetWaterCan( sal_True );