Skip to content

Commit

Permalink
FINERACT-2034 : Fixed Handle Null Loan Cycle Counter in Loan Product …
Browse files Browse the repository at this point in the history
…Assignment for Borrow Cycle Enabled Products
  • Loading branch information
Rajkumar-Selvaraj-ZS0533 authored and vidakovic committed Jan 8, 2024
1 parent 478fb55 commit 5d96e8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public static LoanAccountData loanProductWithTemplateDefaults(final LoanProductD
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
Expand Down

0 comments on commit 5d96e8c

Please sign in to comment.