- income.incomeSingleAmount is now BigDecimal, need to invoke doubleValue() on
it as direct comparison is not possible
Signed-off-by: Roland Häder <roland@mxchange.org>
} else if (income.getIncomeSingleAmount() == null) {
// Throw it again
throw new NullPointerException("income.incomeSingleAmount is null"); //NOI18N
- } else if (income.getIncomeSingleAmount() < 0) {
+ } else if (income.getIncomeSingleAmount().doubleValue() < 0) {
// Throw IAE
throw new IllegalArgumentException(MessageFormat.format("income.incomeSingleAmount={0} is invalid.", income.getIncomeSingleAmount())); //NOI18N
} else if (income.getIncomeTitle() == null) {