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

coverity#735848 Explicit null dereferenced

Change-Id: I9fb6da4d448923fd5b8822a72d6945a0c0b5f40d
üst 5818415d
...@@ -103,8 +103,11 @@ void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eSta ...@@ -103,8 +103,11 @@ void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eSta
else if( eState == SFX_ITEM_AVAILABLE ) else if( eState == SFX_ITEM_AVAILABLE )
{ {
const SfxBoolItem *pStateItem = PTR_CAST(SfxBoolItem, pItem); const SfxBoolItem *pStateItem = PTR_CAST(SfxBoolItem, pItem);
DBG_ASSERT(pStateItem != 0, "BoolItem expected"); assert(pStateItem); //BoolItem expected
nWaterCanState = pStateItem->GetValue() ? 1 : 0; if (pStateItem)
nWaterCanState = pStateItem->GetValue() ? 1 : 0;
else
nWaterCanState = 0xff;
} }
//not necessary if the last event is still on the way //not necessary if the last event is still on the way
if(!nUserEventId) if(!nUserEventId)
......
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