From 1084a75242729619967da7275fd2f42704954277 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 7 May 2014 11:59:35 +0100 Subject: coverity#735858 Explicit null dereferenced Change-Id: Ia8964b4b7e38d7bba9417695f571858683c2fd5b --- svx/source/dialog/_bmpmask.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx index 38af730b9ea0..906757fedab2 100644 --- a/svx/source/dialog/_bmpmask.cxx +++ b/svx/source/dialog/_bmpmask.cxx @@ -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() ); } } -- cgit