wkigenyi commented on code in PR #3901:
URL: https://github.com/apache/fineract/pull/3901#discussion_r1644085151


##########
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:
   Yes, the weird part is the _sometimes_ bit. I did not manage to get a proper 
pattern. It would sometimes just work and sometimes it would raise the 
exception. But ever since I applied this fix I have not had the issue.



-- 
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]

Reply via email to