Skip to content

Commit

Permalink
[backend] Add condition when filters are null or empty (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanah29 authored Oct 29, 2024
1 parent 255c7aa commit de4f4b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static <T> Specification<T> computeFilterGroupJpa(
@SuppressWarnings("unchecked")
private static <T, U> Specification<T> computeFilter(
@Nullable final Filter filter, Map<String, Join<Base, Base>> joinMap) {
if (filter == null) {
if (filter == null || filter.getValues() == null || filter.getValues().isEmpty()) {
return (Specification<T>) EMPTY_SPECIFICATION;
}
String filterKey = filter.getKey();
Expand Down

0 comments on commit de4f4b8

Please sign in to comment.