Skip to content

Commit 5d96e8c

Browse files
Rajkumar-Selvaraj-ZS0533vidakovic
authored andcommitted
FINERACT-2034 : Fixed Handle Null Loan Cycle Counter in Loan Product Assignment for Borrow Cycle Enabled Products
1 parent 478fb55 commit 5d96e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public static LoanAccountData loanProductWithTemplateDefaults(final LoanProductD
500500
BigDecimal interestRatePerPeriod = null;
501501

502502
Integer numberOfRepayments = null;
503-
if (product.isUseBorrowerCycle() && loanCycleNumber > 0) {
503+
if (product.isUseBorrowerCycle() && loanCycleNumber != null && loanCycleNumber > 0) {
504504
Collection<LoanProductBorrowerCycleVariationData> principalVariationsForBorrowerCycle = product
505505
.getPrincipalVariationsForBorrowerCycle();
506506
Collection<LoanProductBorrowerCycleVariationData> interestForVariationsForBorrowerCycle = product

0 commit comments

Comments
 (0)