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


##########
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:
   Because in the DB is it `short` or `smallint` and casting it to Integer 
would would sometimes raise ClassCastException on Ubuntu OS.



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