]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 24 Mar 2018 22:21:57 +0000 (23:21 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 24 Mar 2018 22:21:57 +0000 (23:21 +0100)
- 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>
src/java/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBean.java

index f039c00ab305d5ff82126202abd0abc96b5ae865..784f52fb837d949283e250d7acb28e795dca974f 100644 (file)
@@ -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) {