]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPID.cxx
Additional protection. The call to RecWithStack has to be removed in case of raw...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
index d4e02e75e8f4011cee267d4671ad0380762d29c8..4d64c1d1109b67ac416a6a3a6a8901d93891da61 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();
 }