{
// dtor
//Remove this from the parental task before destroying
- AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
+ if(AliPHOSGetter::Instance()->PhosLoader())
+ AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
}
AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
{
//Remove this from the parental task before destroying
- AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
+ if(AliPHOSGetter::Instance()->PhosLoader())
+ AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
}