Skip to content

Commit

Permalink
when sort is empty return null
Browse files Browse the repository at this point in the history
  • Loading branch information
hitk6 committed Jun 12, 2024
1 parent 3b2a6f1 commit dff3191
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public void addHighlights(Map<String, List<String>> highlights) {
public Object getSort() { return sort; }

public void addSort(ArrayList<Object> sort) {
this.sort = sort;
if (sort.isEmpty()) {
this.sort = null;
} else {
this.sort = sort;
}
}

@Override
Expand Down

0 comments on commit dff3191

Please sign in to comment.