Closed xiazunyang closed 5 years ago
https://github.com/aspnet/SignalR/blob/master/clients/java/signalr/src/main/java/com/microsoft/signalr/OkHttpWebSocketWrapper.java#L98 should change to onClose.invoke(0, t.getMessage()); Otherwise NullPointerException will occur when the network state changes.
onClose.invoke(0, t.getMessage());
Dupe of https://github.com/aspnet/SignalR/issues/3336 We've fixed it in the RTM version, which should be out before the end of the year
https://github.com/aspnet/SignalR/blob/master/clients/java/signalr/src/main/java/com/microsoft/signalr/OkHttpWebSocketWrapper.java#L98 should change to
onClose.invoke(0, t.getMessage());
Otherwise NullPointerException will occur when the network state changes.