JSR-356 fixing NPE on bufferPool

This commit is contained in:
Joakim Erdfelt 2013-07-30 14:32:41 -07:00
parent f8172e5a59
commit 4d36627a63
1 changed files with 1 additions and 0 deletions

View File

@ -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)");