We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.in(CollectionUtils.isNotEmpty(statusSet), "status", statusSet.toArray()) 比如这个条件, 尽管前面条件里判空了,但是如果statusSet是null仍然会抛出空指针
一般解决这个问题可以用 ==null?null: 这种三元符来解决: .in(CollectionUtils.isNotEmpty(statusSet), "status", statusSet==null?null:statusSet.toArray())
但是更优雅的方式是提供Supplier参数重载. 这样扩展性也更好: .in(CollectionUtils.isNotEmpty(statusSet), "status", ()-> statusSet.toArray())
The text was updated successfully, but these errors were encountered:
No branches or pull requests
.in(CollectionUtils.isNotEmpty(statusSet), "status", statusSet.toArray())
比如这个条件, 尽管前面条件里判空了,但是如果statusSet是null仍然会抛出空指针
一般解决这个问题可以用 ==null?null: 这种三元符来解决:
.in(CollectionUtils.isNotEmpty(statusSet), "status", statusSet==null?null:statusSet.toArray())
但是更优雅的方式是提供Supplier参数重载. 这样扩展性也更好:
.in(CollectionUtils.isNotEmpty(statusSet), "status", ()-> statusSet.toArray())
The text was updated successfully, but these errors were encountered: