added protection
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Apr 2008 12:37:38 +0000 (12:37 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Apr 2008 12:37:38 +0000 (12:37 +0000)
STEER/AliQADataMaker.cxx

index 38c880ef8af0f5079dea3875158b4d1c20d86a22..3b375b4e2e3cf8646976498b384ad7f8ac9b538c 100644 (file)
@@ -103,7 +103,8 @@ void AliQADataMaker::DefaultEndOfDetectorCycle(AliQA::TASKINDEX_t task)
 void AliQADataMaker::Finish() const 
 { 
        // write to the output File
-       fOutput->Close() ; 
+       if (fOutput) 
+               fOutput->Close() ; 
 } 
 
 //____________________________________________________________________________