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
NPE throw when applying projections in findAndModify #35
Comments
Thanks for the report. Can you me the stacktrace ?
|
I figured out my issue. I was asking for a field that wasn't in the projected results. I was both asking for the wrong field, and the projection was an empty object. My issue is resolved, but I feel like this should throw a different exception.
|
You'Re totaly right. Witch version of fongo do you use ?
|
|
Thanks, issue will be resolved in 1.4.6
|
when:
it gets to
applyProjections
withbeforeObject == null
andafterObject == null
, andapplyProjections
can't handle anull
. I am expecting to get the item I saved back from the database.Both my unit tests with
returnNew == true
andreturnNew == false
are failing with an exception, rather than receiving anull
.The text was updated successfully, but these errors were encountered: