We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478fb55 commit 5d96e8cCopy full SHA for 5d96e8c
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanAccountData.java
@@ -500,7 +500,7 @@ public static LoanAccountData loanProductWithTemplateDefaults(final LoanProductD
500
BigDecimal interestRatePerPeriod = null;
501
502
Integer numberOfRepayments = null;
503
- if (product.isUseBorrowerCycle() && loanCycleNumber > 0) {
+ if (product.isUseBorrowerCycle() && loanCycleNumber != null && loanCycleNumber > 0) {
504
Collection<LoanProductBorrowerCycleVariationData> principalVariationsForBorrowerCycle = product
505
.getPrincipalVariationsForBorrowerCycle();
506
Collection<LoanProductBorrowerCycleVariationData> interestForVariationsForBorrowerCycle = product
0 commit comments