]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCDBManager.cxx
Fix for Savannah bug report 59287
[u/mrichter/AliRoot.git] / STEER / AliCDBManager.cxx
index 1ad7214843f1cf274dc7868c36ac81b35cccaf90..70695d781fb10ded918c193dc57d1d4797da9bbd 100644 (file)
@@ -1109,6 +1109,11 @@ void AliCDBManager::ClearCache(){
 void AliCDBManager::UnloadFromCache(const char* path){
 // unload cached object
 
+       if(!fActiveStorages.GetEntries()) {
+               AliDebug(2, Form("No active storages. Object \"%s\" is not unloaded from cache", path));
+               return;
+       }
+
        AliCDBPath queryPath(path);
        if(!queryPath.IsValid()) return;