Test on PHOSloader existence added to destr.
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Sep 2004 09:53:36 +0000 (09:53 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Sep 2004 09:53:36 +0000 (09:53 +0000)
PHOS/AliPHOSClusterizer.cxx

index d7af4c7..4fc4ab4 100644 (file)
@@ -59,7 +59,8 @@ AliPHOSClusterizer::~AliPHOSClusterizer()
   // dtor
          
  //Remove this from the parental task before destroying
-  AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
+  if(AliPHOSGetter::Instance()->PhosLoader())
+    AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
 }