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

coverity#1194926 Dereference before null check

Change-Id: I1825de227b760624faaa68a1de2d3ecd5b7657a5
üst a83ad7c1
...@@ -1118,9 +1118,7 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem* ...@@ -1118,9 +1118,7 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem*
SfxShell *pShell=0; SfxShell *pShell=0;
const SfxSlot *pSlot=0; const SfxSlot *pSlot=0;
// if slot was uncached, we should have created a cache in this method! const SfxSlotServer* pServer = pCache->GetSlotServer( rDispatcher, pImp->xProv );
DBG_ASSERT( pCache, "This code needs a cache!");
const SfxSlotServer* pServer = pCache ? pCache->GetSlotServer( rDispatcher, pImp->xProv ) : 0;
if ( !pServer ) if ( !pServer )
{ {
return NULL; return NULL;
......
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