ItEr27S07CUVistaRecursosTempoPorProxectoItEr26S08: Putting zero value if null is received
This commit is contained in:
parent
277dd9c687
commit
ea4b11c82a
1 changed files with 3 additions and 1 deletions
|
|
@ -400,7 +400,9 @@ public class ResourceAllocationController extends GenericForwardComposer {
|
|||
|
||||
@Override
|
||||
public void set(BigDecimal value) {
|
||||
data.setResourcesPerDay(ResourcesPerDay.amount(value));
|
||||
BigDecimal amount = value == null ? new BigDecimal(0)
|
||||
: value;
|
||||
data.setResourcesPerDay(ResourcesPerDay.amount(amount));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue