-
Notifications
You must be signed in to change notification settings - Fork 316
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
Fix invokeAsync does not handle NullPointerException #42
Labels
enhancement
enhancement
Comments
vongosling
added a commit
that referenced
this issue
Jan 10, 2020
[ISSUE #42] Fix rpc module null pointer exception handling
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now we use invokeAsync in this way in dledger
https:/openmessaging/openmessaging-storage-dledger/blob/2450e39933931afb10d5eea47f55cdaa78973f11/src/main/java/io/openmessaging/storage/dledger/DLedgerRpcNettyService.java#L124-L127
if invokeAsync method timeout, there will be a thread to invoke the callback and responseFuture.getResponseCommand() return null, so a NullPointerException will be thrown.
we should deal with this situation when invokeAsync method timeout
The text was updated successfully, but these errors were encountered: