eventmesh
eventmesh copied to clipboard
[Enhancement] Possible null pointer dereference due to return value of called method [DownStreamMsgContext]
Search before asking
- [X] I had searched in the issues and found no similar issues.
Enhancement Request
located at:
org/apache/eventmesh/runtime/core/protocol/tcp/client/session/push/DownStreamMsgContext.java line 137 138
analysis and explanation:
The return value from a method is dereferenced without a null check, and the return value of that method is one that should generally be checked for null. This may lead to a NullPointerException when the code is executed.
Describe the solution you'd like
add NPE exception check.
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
I would like to work on this issue