vidakovic commented on code in PR #2701:
URL: https://github.com/apache/fineract/pull/2701#discussion_r1010000891
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanSummaryData.java:
##########
@@ -96,7 +96,7 @@ public LoanSummaryData(final CurrencyData currency, final
BigDecimal principalDi
this.interestOverdue = interestOverdue;
this.feeChargesCharged = feeChargesCharged;
this.feeChargesDueAtDisbursementCharged =
feeChargesDueAtDisbursementCharged;
- this.feeChargesPaid = feeChargesPaid;
+ this.feeChargesPaid = feeChargesPaid != null ? feeChargesPaid :
BigDecimal.ZERO;
Review Comment:
Well spotted. I checked if the reason for this line was outside of this
constructor, but it's used only in one place. The Git history doesn't show any
use of "ZERO", will revert that line.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]