I should have used a list in the first place...the array wasn't getting trimmed after removing workers, which was causing null refs at the back of the array.