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