eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Enhancement] Possible null pointer dereference due to return value of called method [DownStreamMsgContext]

Open Alonexc opened this issue 4 years ago • 1 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Enhancement Request

image 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!

Alonexc avatar Oct 21 '22 06:10 Alonexc

I would like to work on this issue

srideviabhirami avatar Oct 23 '22 10:10 srideviabhirami