From fdb865838ed270490d7ab6e555e96214281745a0 Mon Sep 17 00:00:00 2001 From: alla Date: Mon, 17 Dec 2012 07:13:35 +0000 Subject: [PATCH] coverity fixed --- T0/AliT0QAChecker.cxx | 1 + T0/AliT0QADataMakerRec.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/T0/AliT0QAChecker.cxx b/T0/AliT0QAChecker.cxx index 49e999bdc1c..797c8aae1cd 100644 --- a/T0/AliT0QAChecker.cxx +++ b/T0/AliT0QAChecker.cxx @@ -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"); diff --git a/T0/AliT0QADataMakerRec.cxx b/T0/AliT0QADataMakerRec.cxx index 2d881fdad82..3d7851802f7 100644 --- a/T0/AliT0QADataMakerRec.cxx +++ b/T0/AliT0QADataMakerRec.cxx @@ -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 -- 2.39.3