summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 09:32:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 11:29:19 +0000
commit417a8624c7dd11da99f30e8d62bb4f53becd318e (patch)
tree06c238344bbc3fe1bc461fa2dd8242ce826327b8 /sfx2
parent1a940e329aabb7929e7c12c34464098921b8a720 (diff)
coverity#440811 Dereference null return value
Change-Id: Iccf2f6dd757fe8d14a2f68a0492ea898d2f95490
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/bindings.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index 33e05cf80d53..51bebd48170e 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1915,7 +1915,10 @@ void SfxBindings::SetDispatcher( SfxDispatcher *pDisp )
void SfxBindings::ClearCache_Impl( sal_uInt16 nSlotId )
{
- GetStateCache(nSlotId)->ClearCache();
+ SfxStateCache* pCache = GetStateCache(nSlotId);
+ if (!pCache)
+ return
+ pCache->ClearCache();
}
//--------------------------------------------------------------------