ItEr46S12CUVisualizacionResponsabilidadesTRaballoNaPlanificacion: Checking if parameter is null.
This commit is contained in:
parent
62220a9dc9
commit
b0e4644002
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue