FINERACT-1266: Fix NullPointerException in SavingsHelper.determineInterestPostingPeriods

This commit is contained in:
airajena
2026-01-15 10:10:29 +01:00
committed by Adam Saghy
parent d94050d476
commit 07d67493df
@@ -52,6 +52,11 @@ public final class SavingsHelper {
final Integer financialYearBeginningMonth, List<LocalDate> postInterestAsOn) {
final List<LocalDateInterval> postingPeriods = new ArrayList<>();
if (startInterestCalculationLocalDate == null || interestPostingUpToDate == null) {
return postingPeriods;
}
LocalDate periodStartDate = startInterestCalculationLocalDate;
LocalDate periodEndDate = periodStartDate;
LocalDate actualPeriodStartDate = periodStartDate;