Skip to content

FINERACT-1122: Fix deposit interest rate chart NPE#5863

Open
Satish11012007 wants to merge 1 commit into
apache:developfrom
Satish11012007:FINERACT-1122-fix-deposit-interest-rate-chart-npe
Open

FINERACT-1122: Fix deposit interest rate chart NPE#5863
Satish11012007 wants to merge 1 commit into
apache:developfrom
Satish11012007:FINERACT-1122-fix-deposit-interest-rate-chart-npe

Conversation

@Satish11012007
Copy link
Copy Markdown
Contributor

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

  • Code compiles
  • Unit test added
  • Targeted test passed
  • No unrelated files included
  • No AI-generated commit or metadata added

@Satish11012007 Satish11012007 force-pushed the FINERACT-1122-fix-deposit-interest-rate-chart-npe branch from 0d1a0c2 to cf63233 Compare May 21, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant