ItEr46S12CUVisualizacionResponsabilidadesTRaballoNaPlanificacion: Checking if parameter is null.

This commit is contained in:
Óscar González Fernández 2010-02-03 13:48:22 +01:00
parent 62220a9dc9
commit b0e4644002

View file

@ -85,7 +85,10 @@ public class ResourceCalendar extends BaseCalendar {
return false;
}
private Integer multiplyByCapacity(Integer workableHours) {
private int multiplyByCapacity(Integer workableHours) {
if (workableHours == null) {
return 0;
}
if (capacity == null) {
return workableHours;
}