Coverity fix
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jul 2011 11:15:55 +0000 (11:15 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jul 2011 11:15:55 +0000 (11:15 +0000)
STEER/AliReconstruction.cxx

index 175c8ea..352106b 100644 (file)
@@ -1270,6 +1270,10 @@ Bool_t AliReconstruction::ReadIntensityInfoCDB()
   AliCDBEntry* entry    = AliCDBManager::Instance()->Get("GRP/GRP/LHCData");
   AliCDBEntry* entryCTP = AliCDBManager::Instance()->Get("GRP/CTP/Config");
   //
+  if (!entry || !entryCTP) {
+    AliError(Form("Failed to extract CDB objects GRP/GRP/LHCData: %p or GRP/CTP/Config: %p",entry,entryCTP));
+    return kFALSE;
+  }
   // extract BC masks
   enum {kA,kB,kC,kE,kNMasks};
   AliTriggerConfiguration* conf = (AliTriggerConfiguration*)entryCTP->GetObject();