coverity fixed
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Dec 2012 07:13:35 +0000 (07:13 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Dec 2012 07:13:35 +0000 (07:13 +0000)
T0/AliT0QAChecker.cxx
T0/AliT0QADataMakerRec.cxx

index 49e999b..797c8aa 100644 (file)
@@ -126,6 +126,7 @@ void AliT0QAChecker::Check(Double_t *  test, AliQAv1::ALITASK_t index, TObjArray
   //man->SetDefaultStorage(gSystem->Getenv("AMORE_CDB_URI"));
   if(!man) return; 
   AliCDBEntry* entry = man->Get("GRP/Calib/QAThresholds");
+  if(!entry) return; 
   TObjArray* t0branch = (TObjArray*) entry->GetObject();
   if(!list) return;
   AliQAThresholds*  thresholds = (AliQAThresholds*) t0branch->FindObject("T00");
index 2d881fd..3d78518 100644 (file)
@@ -203,6 +203,7 @@ void AliT0QADataMakerRec::StartOfDetectorCycle()
   //man->SetDefaultStorage(gSystem->Getenv("AMORE_CDB_URI"));
   if(!man) return; 
   AliCDBEntry* entry = man->Get("GRP/Calib/QAThresholds");
+  if(!entry) return;
   TObjArray* t0branch = (TObjArray*) entry->GetObject();
   AliQAThresholds*  thresholds = (AliQAThresholds*) t0branch->FindObject("T00");
   // here you should test that you got a non-null pointer