Kaydet (Commit) a18dc050 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704759 Dereference after null check

Change-Id: Id29fa14b8e7dd587c357c90f07b3858dcd931477
üst 1fd45ad6
...@@ -255,7 +255,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq ) ...@@ -255,7 +255,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
{ {
if( !SD_MOD()->GetWaterCan() ) 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() ); aStyleName = ( ( (const SfxStringItem &) pArgs->Get( nSId ) ).GetValue() );
SD_MOD()->SetWaterCan( sal_True ); SD_MOD()->SetWaterCan( sal_True );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment