]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCDBStorage.cxx
silvermy@ornl.gov - SMcalib - directory with tools for SuperModule calibrations at...
[u/mrichter/AliRoot.git] / STEER / AliCDBStorage.cxx
index 525d55af87e93bdcfb61b89be20350b84535f3f6..d7dc53b062351ccf7f6a3f403f8eaad4065a1efc 100644 (file)
@@ -498,6 +498,11 @@ void AliCDBStorage::LoadTreeFromFile(AliCDBEntry *entry) const {
 // Checks whether entry contains a TTree and in case loads it into memory
 
        TObject *obj = (TObject*) entry->GetObject();
+       if (!obj) {
+         AliError("Cannot retrieve the object:");
+         entry->PrintMetaData();
+         return;
+       }
 
        if (!strcmp(obj->ClassName(),TTree::Class_Name())) {