This is an automated email from the ASF dual-hosted git repository.

aleks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 5d96e8cc3 FINERACT-2034 : Fixed Handle Null Loan Cycle Counter in Loan 
Product Assignment for Borrow Cycle Enabled Products
5d96e8cc3 is described below

commit 5d96e8cc32ff63f97d5ac15e19c6fafee0c31357
Author: Rajkumar-Selvaraj <[email protected]>
AuthorDate: Wed Jan 3 22:42:18 2024 +0530

    FINERACT-2034 : Fixed Handle Null Loan Cycle Counter in Loan Product 
Assignment for Borrow Cycle Enabled Products
---
 .../org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java
index 20572c6a8..acff5c52b 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java
@@ -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

Reply via email to