From 4d36627a63a38fe52173d977fff9b2ee584d995c Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 30 Jul 2013 14:32:41 -0700 Subject: [PATCH] JSR-356 fixing NPE on bufferPool --- .../java/org/eclipse/jetty/websocket/client/WebSocketClient.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java b/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java index 7b99c82efee..2db932e2c83 100644 --- a/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java +++ b/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java @@ -87,6 +87,7 @@ public class WebSocketClient extends ContainerLifeCycle { this.sslContextFactory = sslContextFactory; this.policy = WebSocketPolicy.newClientPolicy(); + this.bufferPool = new MappedByteBufferPool(); this.extensionRegistry = new WebSocketExtensionFactory(policy,bufferPool); if(LOG.isDebugEnabled()) { LOG.debug("Using ZeroMasker (DEBUG)");