Skip to content

Commit

Permalink
Fix #18035 - getting type null exception on feed
Browse files Browse the repository at this point in the history
  • Loading branch information
sonika-shah committed Sep 30, 2024
1 parent 47cde16 commit 5d32482
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ int listCountThreadsByEntityLink(
+ " SELECT te.entityLink, te.type, te.taskStatus, te.id "
+ " FROM thread_entity te "
+ " WHERE te.entityId = :entityId "
+ ") AS combined "
+ ") AS combined WHERE combined.type IS NOT NULL "
+ "GROUP BY type, taskStatus, entityLink")
@RegisterRowMapper(ThreadCountFieldMapper.class)
List<List<String>> listCountByEntityLink(
Expand Down Expand Up @@ -1639,7 +1639,7 @@ default List<List<String>> listCountThreadsByGlossaryAndTerms(
+ " AND (:toType2 IS NULL OR fr.toType LIKE CONCAT(:toType2, '.%') OR fr.toType = :toType2) "
+ " AND fr.relation = 3 "
+ " ) "
+ ") AS combined_results "
+ ") AS combined_results WHERE combined_results.type is not NULL "
+ "GROUP BY entityLink, type, taskStatus ")
@RegisterRowMapper(ThreadCountFieldMapper.class)
List<List<String>> listCountThreadsByGlossaryAndTerms(
Expand Down

0 comments on commit 5d32482

Please sign in to comment.