-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DATAMONGO-1608 - Fixed potential NullPointerException for derived ignore case query methods #439
New issue
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
Conversation
@EdwardPrentice Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@EdwardPrentice Thank you for signing the Contributor License Agreement! |
@@ -15,6 +15,7 @@ | |||
*/ | |||
package org.springframework.data.mongodb.repository.query; | |||
|
|||
import static java.util.Objects.nonNull; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to preserve JDK 6 compatibility. Can we just exchange this against a simple null check?
086d1e6
to
300ee43
Compare
Made change to remove nonNull for JDK 6 compatibility. Tests don't all pass because I can't work out what should happen in the null case - all implementations I've come up with so far cause a different number of other tests to fail. |
300ee43
to
6fbbcab
Compare
Done :) At least works, and passes all tests. |
6fbbcab
to
f9fc739
Compare
…g IgnoreCase. Original Pull Request: #439
Throw an IllegalArgumentException when trying to create a query using 'null' as an argument for queries resulting in a $regex query operator. Original Pull Request: #439
…g IgnoreCase. Original Pull Request: #439
Throw an IllegalArgumentException when trying to create a query using 'null' as an argument for queries resulting in a $regex query operator. Original Pull Request: #439
…g IgnoreCase. Original Pull Request: #439
Throw an IllegalArgumentException when trying to create a query using 'null' as an argument for queries resulting in a $regex query operator. Original Pull Request: #439
…g IgnoreCase. Original Pull Request: #439
Throw an IllegalArgumentException when trying to create a query using 'null' as an argument for queries resulting in a $regex query operator. Original Pull Request: #439
Thanks @EdwardPrentice! Applied to master and ported to SR branches. |
Uh oh!
There was an error while loading. Please reload this page.