summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
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();
}
//--------------------------------------------------------------------