Fix NullPointerException when unboxing null to int.
Change int to Integer to allow use null as code.
This commit is contained in:
parent
e1b602a7c5
commit
e8b9dc52ba
|
|
@ -86,7 +86,7 @@ class WebSocketTransport implements Transport {
|
||||||
return webSocketClient.stop().doOnEvent(t -> logger.info("WebSocket connection stopped."));
|
return webSocketClient.stop().doOnEvent(t -> logger.info("WebSocket connection stopped."));
|
||||||
}
|
}
|
||||||
|
|
||||||
void onClose(int code, String reason) {
|
void onClose(Integer code, String reason) {
|
||||||
logger.info("WebSocket connection stopping with " +
|
logger.info("WebSocket connection stopping with " +
|
||||||
"code {} and reason '{}'.", code, reason);
|
"code {} and reason '{}'.", code, reason);
|
||||||
if (code != 1000) {
|
if (code != 1000) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue