Skip to content

Conversation

@nanne-rl
Copy link

When a WebSocket connection closes due to page navigation, the driver may send close events without code, reason, or wasClean fields. This caused a NullPointerException when accessing these fields directly.

Fixes #1882

@nanne-rl nanne-rl marked this pull request as draft January 27, 2026 13:57
When a WebSocket connection closes due to page navigation, the driver
may send close events without code, reason, or wasClean fields. This
caused a NullPointerException when accessing these fields directly.

Fixes microsoft#1882
@nanne-rl nanne-rl force-pushed the fix-websocket-redirect branch from 7387843 to 7d1e5d4 Compare January 27, 2026 14:03
@nanne-rl
Copy link
Author

I have confirmed the fix works with the test repo nanne-rl/pw-java-websocket-bug

@nanne-rl nanne-rl marked this pull request as ready for review January 27, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: NullPointerException in WebSocketRouteImpl when page redirects during WebSocket message handling

1 participant