FINERACT-2034 : Fixed Handle Null Loan Cycle Counter in Loan Product Assignment for Borrow Cycle Enabled Products

This commit is contained in:
Rajkumar-Selvaraj
2024-01-08 06:59:08 +01:00
committed by Aleksandar Vidakovic
parent 478fb55b0f
commit 5d96e8cc32
@@ -500,7 +500,7 @@ public class LoanAccountData {
BigDecimal interestRatePerPeriod = null;
Integer numberOfRepayments = null;
if (product.isUseBorrowerCycle() && loanCycleNumber > 0) {
if (product.isUseBorrowerCycle() && loanCycleNumber != null && loanCycleNumber > 0) {
Collection<LoanProductBorrowerCycleVariationData> principalVariationsForBorrowerCycle = product
.getPrincipalVariationsForBorrowerCycle();
Collection<LoanProductBorrowerCycleVariationData> interestForVariationsForBorrowerCycle = product