WebSocket transport should not assume the handler is never null when sending a frame - closes
@@ -129,9 +129,11 @@ class WebSocketTransport extends BaseTransport {
if (!closed) {
ws.writeTextMessage(body, handler);
} else {
+ if (handler != null) {
handler.handle(Future.failedFuture(ConnectionBase.CLOSED_EXCEPTION));
}
}
+ }
public void close() {
if (!closed) {
