Skip to content

Commit

Permalink
fixed NPE collections search
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Oct 22, 2024
1 parent e942929 commit f2156e9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ public List<CollectionsFullSearchResponse> searchCrossEntities(
Country[] country,
@RequestParam(value = "limit", defaultValue = "20") int limit) {
return collectionsSearchService.search(
query, highlight, type, displayOnNHCPortal, Arrays.asList(country), limit);
query,
highlight,
type,
displayOnNHCPortal,
country != null ? Arrays.asList(country) : null,
limit);
}

@Operation(
Expand Down

0 comments on commit f2156e9

Please sign in to comment.