Skip to content

The McpClientSession.handle method throws a null pointer exception. #506

@zyy202004

Description

@zyy202004

Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:

Bug description
When processing with the McpClientSession.handle method, a null pointer exception was thrown at this.pendingResponses.remove(response.getId()) when response.getId() was null. This null pointer exception disrupted the internal response handling loop on the client side, causing the connection to wait until the 20-second timeout period elapsed before interrupting the connection.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions