wkigenyi commented on code in PR #3901:
URL: https://github.com/apache/fineract/pull/3901#discussion_r1644068651
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/account/service/AccountAssociationsReadPlatformServiceImpl.java:
##########
@@ -99,22 +99,22 @@ public boolean isLinkedWithAnyActiveAccount(final Long
savingsId) {
final List<Map<String, Object>> statusList =
this.jdbcTemplate.queryForList(sql1, savingsId);
for (final Map<String, Object> statusMap : statusList) {
- AccountAssociationType associationType =
AccountAssociationType.fromInt((Integer) statusMap.get("type"));
+ AccountAssociationType associationType =
AccountAssociationType.fromInt(((Short) statusMap.get("type")).intValue());
Review Comment:
I would say 1/ 5 the exception would occur.
--
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]