added protection
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Jan 2008 12:09:45 +0000 (12:09 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Jan 2008 12:09:45 +0000 (12:09 +0000)
STEER/AliQADataMakerSim.cxx

index 3be9f37..8b0405d 100644 (file)
@@ -85,8 +85,10 @@ void AliQADataMakerSim::EndOfCycle(AliQA::TASKINDEX task)
        
        EndOfDetectorCycle(task, list) ; 
        TDirectory * subDir = fDetectorDir->GetDirectory(AliQA::GetTaskName(task)) ; 
-       subDir->cd() ; 
-       list->Write() ; 
+       if (subDir) { 
+               subDir->cd() ; 
+               list->Write() ; 
+       }
 }
  
 //____________________________________________________________________________