Satish11012007 opened a new pull request, #5863:
URL: https://github.com/apache/fineract/pull/5863
## Description
Fixes FINERACT-1122 by preventing a `NullPointerException` in
`DepositAccountInterestRateChartData.from()` when no product interest rate
chart is available while retrieving fixed or recurring deposit account
templates.
## Key Changes
- Added a null guard in `DepositAccountInterestRateChartData.from()`.
- Return `null` when the source `InterestRateChartData` is absent, matching
existing account template behavior where `accountChart` can be null.
- Added a regression unit test for the null chart mapping case.
## Testing
- Ran:
`./gradlew :fineract-savings:test --tests
org.apache.fineract.portfolio.savings.data.DepositAccountInterestRateChartDataTest`
## Checklist
- [x] Code compiles
- [x] Unit test added
- [x] Targeted test passed
- [x] No unrelated files included
- [x] No AI-generated commit or metadata added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]