X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=EMCAL%2FAliEMCALSensorTempArray.cxx;h=ae47d5cd997f9d4f76c68fb6634ff676a4a2a1c1;hp=7976bb3c7257decc65613092ad26705c0d9f08db;hb=e33e0c4af2e84d8adfa03dba43157de411445d6a;hpb=a51e676d13aca021143a1d49cf1064b3c2101233 diff --git a/EMCAL/AliEMCALSensorTempArray.cxx b/EMCAL/AliEMCALSensorTempArray.cxx index 7976bb3c725..ae47d5cd997 100644 --- a/EMCAL/AliEMCALSensorTempArray.cxx +++ b/EMCAL/AliEMCALSensorTempArray.cxx @@ -116,8 +116,11 @@ void AliEMCALSensorTempArray::ReadSensors(const char *dbEntry) // Read list of temperature sensors from text file // AliCDBEntry *entry = AliCDBManager::Instance()->Get(dbEntry); - TTree *tree = (TTree*) entry->GetObject(); - fSensors = AliEMCALSensorTemp::ReadTree(tree); + if(entry){ + TTree *tree = (TTree*) entry->GetObject(); + fSensors = AliEMCALSensorTemp::ReadTree(tree); + } + else AliFatal("NULL CDB entry!"); } //_____________________________________________________________________________