From 7096a32e16019e693c3f5806d706572ed7e6a970 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 8 Apr 2014 16:06:43 +0100 Subject: coverity#704791 Dereference after null check Change-Id: I7e973ac9b91ab112952f56ce290c07c9fc5670b2 --- sfx2/source/control/bindings.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 2331cc3b0df9..0523bbba85de 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -481,7 +481,7 @@ void SfxBindings::Update if ( bInternalUpdate ) { // Query Status - const SfxSlotServer* pMsgServer = pCache->GetSlotServer(*pDispatcher, pImp->xProv); + const SfxSlotServer* pMsgServer = pDispatcher ? pCache->GetSlotServer(*pDispatcher, pImp->xProv) : NULL; if ( !pCache->IsControllerDirty() && ( !pMsgServer || !pMsgServer->GetSlot()->IsMode(SFX_SLOT_VOLATILE) ) ) -- cgit