New detector numbering scheme (common for DAQ/HLT/Offline). All the subdetectors...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
index d4e02e7..4d64c1d 100644 (file)
@@ -62,6 +62,7 @@ AliPHOSPID::~AliPHOSPID()
 {
   // dtor
  //Remove this from the parental task before destroying
-  AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
+  if(AliPHOSGetter::Instance()->PhosLoader())
+    AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
 }