-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
I encountered a null object reference issue and need confirmation. Here's the reproducible workflow:
Describe the bug
During connection establishment, a WebSocket handshake request is sent.
However, the WebSocket response did not arrive (the response was never received/processed).
At this point, a close command is triggered, which calls the flushAndClose function.
Inside flushAndClose, the handshakeRequest is set to null.
Later, when processing the handshake response and calling the decodeHandshake function:
decodeHandshake calls acceptHandshakeAsClient.
Within acceptHandshakeAsClient, accessing the method haFieldValue on this object results in a null object reference error.
To Reproduce
Steps to reproduce the behavior:
- a WebSocket handshake request is sent
- the WebSocket response did not arrive
- a close command is triggered
- processing the handshake response
Example application to reproduce the issue
A link to a github project/gist to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Debug log
The the debug log (set the log level to TRACE
) to help explain your problem.
Environment(please complete the following information):
- Version used:
- Java version:
- Operating System and version:
- Endpoint Name and version:
- Link to your project:
Additional context
Add any other context about the problem here.