Fix possible NPE
FEA: ItEr74S04BugFixing
This commit is contained in:
parent
f4fc8f53d3
commit
7d0103b250
1 changed files with 1 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ public class CostCategoryCRUDController extends GenericForwardComposer
|
|||
if (dbPricePerHour != null) {
|
||||
dbPricePerHour.setValue(defaultPrice);
|
||||
}
|
||||
} else {
|
||||
} else if (item != null) {
|
||||
hourCost.setPriceCost(BigDecimal.ZERO);
|
||||
throw new WrongValueException(item.getParent(),
|
||||
_("Please, select an item"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue