Fix possible NPE

FEA: ItEr74S04BugFixing
This commit is contained in:
Óscar González Fernández 2011-06-06 14:08:35 +02:00
parent f4fc8f53d3
commit 7d0103b250

View file

@ -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"));