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

coverity#735858 Explicit null dereferenced

Change-Id: Ia8964b4b7e38d7bba9417695f571858683c2fd5b
üst 5d5d773f
......@@ -360,10 +360,9 @@ void SvxBmpMaskSelectItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*
if ( ( nSID == SID_BMPMASK_EXEC ) && pItem )
{
const SfxBoolItem* pStateItem = PTR_CAST( SfxBoolItem, pItem );
DBG_ASSERT( pStateItem || pItem == 0, "SfxBoolItem erwartet");
rBmpMask.SetExecState( pStateItem->GetValue() );
assert(pStateItem); //SfxBoolItem erwartet
if (pStateItem)
rBmpMask.SetExecState( pStateItem->GetValue() );
}
}
......
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