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

adamsaghy 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 89487a8ace FINERACT-1266: Fix potential NPE in 
determineInterestPostingPeriods
89487a8ace is described below

commit 89487a8ace3a43a2e447b15c669c2b829944af01
Author: Satish11012007 <[email protected]>
AuthorDate: Tue Feb 17 23:55:56 2026 +0530

    FINERACT-1266: Fix potential NPE in determineInterestPostingPeriods
---
 .../org/apache/fineract/portfolio/savings/domain/SavingsHelper.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/fineract-core/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsHelper.java
 
b/fineract-core/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsHelper.java
index e0391a3ae8..0d31101e5a 100644
--- 
a/fineract-core/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsHelper.java
+++ 
b/fineract-core/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsHelper.java
@@ -57,6 +57,9 @@ public final class SavingsHelper {
             return postingPeriods;
         }
 
+        if (postInterestAsOn == null) {
+            postInterestAsOn = Collections.emptyList();
+        }
         LocalDate periodStartDate = startInterestCalculationLocalDate;
         LocalDate periodEndDate = periodStartDate;
         LocalDate actualPeriodStartDate = periodStartDate;

Reply via email to