From: Roland Häder Date: Sat, 24 Mar 2018 22:21:57 +0000 (+0100) Subject: Don't cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a47209f3698fc3419553c9cce7e3aae598cf09e;p=jfinancials-ejb.git Don't cherry-pick: - income.incomeSingleAmount is now BigDecimal, need to invoke doubleValue() on it as direct comparison is not possible Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBean.java b/src/java/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBean.java index f039c00..784f52f 100644 --- a/src/java/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBean.java +++ b/src/java/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBean.java @@ -55,7 +55,7 @@ public class FinancialIncomeSessionBean extends BaseFinancialsDatabaseBean imple } 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) {