adamsaghy commented on code in PR #3901:
URL: https://github.com/apache/fineract/pull/3901#discussion_r1644061853
##########
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:
Sometimes? What do you mean? From 5 calls, 4 times it is integer and 1 time
it short and you got ClassCastException?
--
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]