-
Notifications
You must be signed in to change notification settings - Fork 1.1k
@Aggregation
repository query method causes NullPointerException
when the result is empty
#3623
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
Thanks for reporting - seems we miss a |
christophstrobl
added a commit
that referenced
this issue
Apr 12, 2021
This commit fixes an issue where using a simple return type leads to NPE when the actual aggregation result does not contain any values. Closes: #3623
@Aggregation
repository query method causes NullPointerException
when the result is empty
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
i'm have an issue regarding usage of Aggregation annotation on spring-data-mongodb
What i'm encounter is
This happen when collection empty (not have any document) but if have an document, i'm not encounter the error.
Here some snippet of code i'm using:
The text was updated successfully, but these errors were encountered: