Skip to content

null object reference error #1472

@adamscm

Description

@adamscm

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:

  1. a WebSocket handshake request is sent
  2. the WebSocket response did not arrive
  3. a close command is triggered
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions