eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Bug] Possible null pointer dereference

Open kirinzhu opened this issue 2 years ago • 0 comments

Search before asking

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

Environment

Mac

EventMesh version

master

What happened

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.

The bug appears in the package org.apache.eventmesh.runtime.core.protocol.http.processor many times.

How to reproduce

It will happen if the return value is null.

Debug logs

No response

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

kirinzhu avatar Jul 01 '22 07:07 kirinzhu