ItEr41S16ImplantacionAplicacionItEr40S21: [Bug #218] Fixing bug.

The error is caused because a calendar capacity is null at database. It could be solved by a migration, but checking it in code too.
This commit is contained in:
Óscar González Fernández 2010-01-01 19:03:44 +01:00
parent da7891366a
commit 5b70a4eda0

View file

@ -37,6 +37,9 @@ public class ResourceCalendar extends BaseCalendar {
private Integer capacity = 1;
public Integer getCapacity() {
if (capacity == null) {
return 1;
}
return capacity;
}