Skip to content

Commit

Permalink
Add can not null assert to In API (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-wangyan committed Nov 14, 2022
1 parent 16da379 commit 81739d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ public void refreshCache() {

@Override
public List<T> in(String property, List<? extends Object> inList) {
if (inList == null)
throw new IllegalArgumentException("inList can not be null");
InCondition inCondition = InCondition.of(property,inList);
inCondition.setClz(this.clzz);
return repository.in(inCondition);
Expand Down

0 comments on commit 81739d5

Please sign in to comment.