summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-31 09:41:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-31 09:42:15 +0100
commitc1a1ec5391cfbb814f67ec903bf6a25ae38597f9 (patch)
tree05f55e4ee0a156869407cd2bfd02e497e24e4eec /sfx2/source/control
parenta83ad7c119c111831a3a0283b3339636d4bca703 (diff)
coverity#1194926 Dereference before null check
Change-Id: I1825de227b760624faaa68a1de2d3ecd5b7657a5
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/bindings.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index 037e06c01437..ff309bca02cb 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1118,9 +1118,7 @@ const SfxPoolItem* SfxBindings::Execute_Impl( sal_uInt16 nId, const SfxPoolItem*
SfxShell *pShell=0;
const SfxSlot *pSlot=0;
- // if slot was uncached, we should have created a cache in this method!
- DBG_ASSERT( pCache, "This code needs a cache!");
- const SfxSlotServer* pServer = pCache ? pCache->GetSlotServer( rDispatcher, pImp->xProv ) : 0;
+ const SfxSlotServer* pServer = pCache->GetSlotServer( rDispatcher, pImp->xProv );
if ( !pServer )
{
return NULL;