diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 16:06:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-08 16:26:28 +0100 |
commit | 7096a32e16019e693c3f5806d706572ed7e6a970 (patch) | |
tree | 763b6ca0125ec89084145be4c691d83c7bb44d9b /sfx2 | |
parent | ceebfc0436e878e1cf7e428f88567ec3cde2cc8b (diff) |
coverity#704791 Dereference after null check
Change-Id: I7e973ac9b91ab112952f56ce290c07c9fc5670b2
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) ) ) |