-
Notifications
You must be signed in to change notification settings - Fork 140
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
Parameters of type ObjectId with null value are changed to non-null upon invocation #744
Comments
I think you are right. I could track this down and pass the null. |
Can we use Void like Vertx does? |
Actually no I guess not it's about value not type sorry stupid comment. |
How are you invoking it? WebSocket? ServiceQueue? or ServiceBundle? Can you create a small test case that reproduces this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a method with this signature:
and am invoking it like this:
When invoked, the 2nd parameter is not null, it's an ObjectId such as "57728ed86cf58c9c45dfca95". The stack is below.
I suspect that in the Qbit method invocation internals, the null parameter is getting swizzled to the result of "new ObjectId()" which is a non-null value. A workaround is to pass the value by string.
The text was updated successfully, but these errors were encountered: