fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Nnaa (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FINERACT-83) Make "interestIncome" variable in "LoanAccrualWritePlatformServiceImpl.updateInterestIncome" method null-safe
Date Thu, 17 Mar 2016 11:47:33 GMT

     [ https://issues.apache.org/jira/browse/FINERACT-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Nnaa updated FINERACT-83:
----------------------------------
    Description: 
Make "interestIncome" variable in "LoanAccrualWritePlatformServiceImpl.updateInterestIncome"
method null-safe.

*Change the following line:*
{code}
BigDecimal interestIncome = accrualData.getInterestIncome();
{code}

*To:*
{code}
BigDecimal interestIncome = BigDecimal.ZERO;
if(accrualData.getInterestIncome() != null) {
    interestIncome = accrualData.getInterestIncome();
}
{code}



  was:
Make "interestIncome" variable null-safe in "LoanAccrualWritePlatformServiceImpl.updateInterestIncome"
method.

*Change the following line:*
{code}
BigDecimal interestIncome = accrualData.getInterestIncome();
{code}

*To:*
{code}
BigDecimal interestIncome = BigDecimal.ZERO;
if(accrualData.getInterestIncome() != null) {
    interestIncome = accrualData.getInterestIncome();
}
{code}




> Make "interestIncome" variable in "LoanAccrualWritePlatformServiceImpl.updateInterestIncome"
method null-safe
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-83
>                 URL: https://issues.apache.org/jira/browse/FINERACT-83
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: Emmanuel Nnaa
>            Assignee: Markus Geiss
>
> Make "interestIncome" variable in "LoanAccrualWritePlatformServiceImpl.updateInterestIncome"
method null-safe.
> *Change the following line:*
> {code}
> BigDecimal interestIncome = accrualData.getInterestIncome();
> {code}
> *To:*
> {code}
> BigDecimal interestIncome = BigDecimal.ZERO;
> if(accrualData.getInterestIncome() != null) {
>     interestIncome = accrualData.getInterestIncome();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message