-
Notifications
You must be signed in to change notification settings - Fork 1.5k
existsById(…)
fails with NullPointerException
when metadata does not exist
#2991
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
Comments
If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal sample that reproduces the problem. |
1. null check on variable `metadata` is missing in method `existsById` 2. `CrudMethodMetadata::getComment` should be `@Nullable` Fix spring-projectsGH-2991
It's an obvious missing null check, I've created #2995. |
1. null check on variable `metadata` is missing in method `existsById` 2. `CrudMethodMetadata::getComment` should be `@Nullable` Fix spring-projectsGH-2991
Thanks ! |
existsById(…)
fails with NullPointerException
when metadata does not exist
Hey all,
After migrating to spring-data-jpa v3.1 I'm currently facing an issue with this check in the existsById Query.
It will not work, as metadata.getComment() will throw a NPE if the metadata is already null.
The text was updated successfully, but these errors were encountered: