Title: Message Title
|
|
|
|
|
|
Affected code below final String savsql = "select savingAccount.status_enum as status from m_portfolio_account_associations aa " + "left join m_savings_account savingAccount on savingAccount.id = aa.savings_account_id " + "where aa.linked_savings_account_id = ?";
final List<Integer> savstatusList = this.jdbcTemplate.queryForList(savsql, Integer.class, savingsId); for (final Integer status : savstatusList) { final SavingsAccountStatusType saveStatus = SavingsAccountStatusType.fromInt(status); if (saveStatus.isActiveOrAwaitingApprovalOrDisbursal() || saveStatus.isUnderTransfer()) { return true; } }
when query returns null the list has a size of 1 with a null. Hence SavingsAccountStatusType.fromInt(status); throws null pointer exception since status is null
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues