ItEr36S07ValidacionEProbasFuncionaisItEr35S08: Fixed NullPointerException.
This commit is contained in:
parent
c99c0b0aca
commit
3cde93298a
1 changed files with 6 additions and 3 deletions
|
|
@ -336,9 +336,12 @@ public abstract class CompanyPlanningModel implements ICompanyPlanningModel {
|
|||
resourceDAO.list(Resource.class), start, finish);
|
||||
|
||||
for (LocalDate day : mapDayAssignments.keySet()) {
|
||||
Integer overloadHours = mapDayAssignments.get(day);
|
||||
Integer maxHours = mapMaxAvailability.get(day);
|
||||
mapDayAssignments.put(day, overloadHours + maxHours);
|
||||
if ((day.compareTo(new LocalDate(start)) >= 0)
|
||||
&& (day.compareTo(new LocalDate(finish)) <= 0)) {
|
||||
Integer overloadHours = mapDayAssignments.get(day);
|
||||
Integer maxHours = mapMaxAvailability.get(day);
|
||||
mapDayAssignments.put(day, overloadHours + maxHours);
|
||||
}
|
||||
}
|
||||
|
||||
String uri = getServletUri(mapDayAssignments, start, finish);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue