coverity#440811 Dereference null return value

Change-Id: Iccf2f6dd757fe8d14a2f68a0492ea898d2f95490
This commit is contained in:
Caolán McNamara
2014-01-28 09:32:25 +00:00
parent 1a940e329a
commit 417a8624c7

View File

@@ -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();
}
//--------------------------------------------------------------------