Test on PHOSloader existence added to destr.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.cxx
index d7af4c78590d5e3a60c0cb191c5c5734c1fd66cb..4fc4ab46d19a0b59c3c6d6cabeed72d0927c4a1b 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();
 }