isSectorOccupied throwing a null pointer exception