TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

Pong payload null exception #224

Closed antonmiron closed 3 years ago

antonmiron commented 3 years ago

The connection is constantly disrupted (within ~1 minute after connecting) due to the error that "attempt to get lenght of null array"

I found that the reason is this pong

but on line 126 we check that the payload is not null, why not before?

Error: pongError

TakahikoKawasaki commented 3 years ago

@antonmiron The bug was fixed by PR #222. nv-websocket-client 2.12 including the bugfix has been released. The bug exists only in nv-websocket-client 2.11 (cf. PR #217).