double delta_dist = max_translate_dist;
PlaSide side_of_nearest_point = translate_line.side_of(nearest_point);
int sign = Signum.as_int(max_translate_dist);
PlaLineInt new_line = null;
PlaLineInt[] check_lines = new PlaLineInt[3];
<BUG>check_lines[0] = p_line_arr[p_no - 1];

check_lines[2] = p_line_arr[p_no + 1];
</BUG>
boolean first_time = true;

double delta_dist = max_translate_dist;
PlaSide side_of_nearest_point = translate_line.side_of(nearest_point);
int sign = Signum.as_int(max_translate_dist);
PlaLineInt new_line = null;
PlaLineInt[] check_lines = new PlaLineInt[3];
check_lines[0] = p_line_arr.get(p_no - 1);
check_lines[2] = p_line_arr.get(p_no + 1);
boolean first_time = true;
