Adding a protection in the DCS d.p. object.
authorpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Dec 2006 16:23:44 +0000 (16:23 +0000)
committerpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Dec 2006 16:23:44 +0000 (16:23 +0000)
STEER/AliGRPPreprocessor.cxx

index f00c3e9..86df545 100644 (file)
@@ -73,6 +73,10 @@ UInt_t AliGRPPreprocessor::Process(TMap* valueMap) {
   const char* timeStart = GetRunParameter("time_start");
   const char* timeEnd = GetRunParameter("time_end");
   TObjArray *alias1 = (TObjArray *)valueMap->GetValue("SFTTemp1.FloatValue");
+  if(!alias1) {
+    Log(Form("SFTTemp1.FloatValue not found!!!"));
+    return 0;
+  }
   AliGRPDCS *dcs = new AliGRPDCS(alias1);
   TH1F *h1 = new TH1F("alias1","",100,15,25);
   TString sAlias1Mean = dcs->ProcessDCS(h1);