[
https://issues.apache.org/jira/browse/FINERACT-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17114272#comment-17114272
]
Saransh Sharma commented on FINERACT-977:
-----------------------------------------
In my opinion, I quickly looked in the source code this issues is coming
because of certain values are not set properly and code is trying to kind of
running methods or computation on those value, maybe at this point we should
just put conditions to avoid those types.
Large solution could be not to allow null values entirely ? Is it possible dunno
> Two NullPointerException in AbstractLoanScheduleGenerator
> ---------------------------------------------------------
>
> Key: FINERACT-977
> URL: https://issues.apache.org/jira/browse/FINERACT-977
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Michael Vorburger
> Priority: Blocker
> Fix For: 1.4.0
>
>
> See FINERACT-932 for general background. This error log can and should be
> "fixed":
> {noformat}java.lang.NullPointerException: null
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.updateAmountsBasedOnCurrentEarlyPayments
> (AbstractLoanScheduleGenerator.java:640)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.generate
> (AbstractLoanScheduleGenerator.java:297)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments
> (AbstractLoanScheduleGenerator.java:2342)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments
> (AbstractLoanScheduleGenerator.java:2053)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.getRecalculatedSchedule
> (Loan.java:5408)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.regenerateRepaymentScheduleWithInterestRecalculation
> (Loan.java:5167)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.handleRepaymentOrRecoveryOrWaiverTransaction
> (Loan.java:3123)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.makeRepayment
> (Loan.java:2955)
> at
> org.apache.fineract.portfolio.loanaccount.domain.LoanAccountDomainServiceJpa.makeRepayment
> (LoanAccountDomainServiceJpa.java:191)
> at
> org.apache.fineract.portfolio.loanaccount.domain.LoanAccountDomainServiceJpa.makeRepayment
> (LoanAccountDomainServiceJpa.java:142){noformat}
> and:
> {noformat} java.lang.NullPointerException
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.handleRecalculationForTransactions
> (AbstractLoanScheduleGenerator.java:521)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.generate
> (AbstractLoanScheduleGenerator.java:331)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments
> (AbstractLoanScheduleGenerator.java:2342)
> at
> org.apache.fineract.portfolio.loanaccount.loanschedule.domain.AbstractLoanScheduleGenerator.rescheduleNextInstallments
> (AbstractLoanScheduleGenerator.java:2053)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.getRecalculatedSchedule
> (Loan.java:5408)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.regenerateRepaymentScheduleWithInterestRecalculation
> (Loan.java:5167)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.handleRepaymentOrRecoveryOrWaiverTransaction
> (Loan.java:3123)
> at
> org.apache.fineract.portfolio.loanaccount.domain.Loan.makeRepayment
> (Loan.java:2955)
> at
> org.apache.fineract.portfolio.loanaccount.domain.LoanAccountDomainServiceJpa.makeRepayment
> (LoanAccountDomainServiceJpa.java:191)
> at
> org.apache.fineract.portfolio.loanaccount.domain.LoanAccountDomainServiceJpa.makeRepayment
> (LoanAccountDomainServiceJpa.java:142){noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)