Fix NullPointerException when unboxing null to int.

Change int to Integer to allow use null as code.
This commit is contained in:
Seyyed davud hosseiny 2018-10-27 10:48:14 +03:30 committed by GitHub
parent e1b602a7c5
commit e8b9dc52ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class WebSocketTransport implements Transport {
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 " +
"code {} and reason '{}'.", code, reason);
if (code != 1000) {