Additional protection (Yves)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Aug 2008 10:19:34 +0000 (10:19 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Aug 2008 10:19:34 +0000 (10:19 +0000)
MUON/AliMUONQADataMakerRec.cxx

index c4b7643..e00ef7e 100644 (file)
@@ -174,7 +174,7 @@ void AliMUONQADataMakerRec::EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArra
                        TString classname(o->ClassName());
                        if ( classname.Contains("TrackerData") ) alreadyThere = kTRUE;
                }
-               if (!alreadyThere) list->AddAt(fTrackerDataMaker->Data(),(Int_t)kTrackerData);
+               if (!alreadyThere && fTrackerDataMaker) list->AddAt(fTrackerDataMaker->Data(),(Int_t)kTrackerData);
        }
        
        // do the QA checking