openvidu-server: avoid NullPointer on handleUncaughtException

pull/331/head
pabloFuente 2019-09-25 15:19:42 +02:00
parent 8f0ec7fbbb
commit f37f030d98
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
@Override @Override
public void handleUncaughtException(Session rpcSession, Exception exception) { public void handleUncaughtException(Session rpcSession, Exception exception) {
log.error("Uncaught exception for WebSocket session: {} - Exception: {}", rpcSession.getSessionId(), exception); log.error("Uncaught exception for WebSocket session: {} - Exception: {}", rpcSession != null ? rpcSession.getSessionId() : "RpcSession NULL", exception);
} }
@Override @Override