Skip to content

Commit

Permalink
PLANNER-1540 Clarify "potential" NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
rsynek authored and ge0ffrey committed Jun 27, 2019
1 parent 1078468 commit e57db58
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ private Map<Integer, List<FlightAssignment>> extractHourToAssignmentListMap(
} else {
previousArrivalHour = Math.max(previousArrivalHour, arrivalHour);
}
// The list is never null; gets initialized in the first loop due to previousArrivalHour = -1
previousFlightAssignmentList.add(flightAssignment);
}
}
Expand Down

0 comments on commit e57db58

Please sign in to comment.