in dtor check the existence of fFile before to close it (the case occurs when merger...
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 May 2002 09:53:09 +0000 (09:53 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 May 2002 09:53:09 +0000 (09:53 +0000)
PHOS/AliPHOSGetter.cxx

index 229798a6448a8399db3ebf9bb6b039ad9c899cc3..20dd81bba116dd4cbb472b741a68ea2f762e5dfe 100644 (file)
@@ -158,9 +158,11 @@ AliPHOSGetter::~AliPHOSGetter(){
   while ( (folder = static_cast<TFolder*>(next())) ) 
     phosF->Remove(folder) ; 
 
-  fFile->Close() ;  
-  delete fFile ;
-  fFile = 0 ;
+  if (fFile) { 
+    fFile->Close() ;  
+    delete fFile ;
+    fFile = 0 ;
+  }
     
 }