activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1337180 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
Date Fri, 11 May 2012 14:27:55 GMT
Author: chirino
Date: Fri May 11 14:27:55 2012
New Revision: 1337180

URL: http://svn.apache.org/viewvc?rev=1337180&view=rev
Log:
Fixes NPE that occurred when you connected over WebSockets.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala?rev=1337180&r1=1337179&r2=1337180&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
Fri May 11 14:27:55 2012
@@ -226,6 +226,10 @@ object WebSocketTransportFactory extends
       if( this.protocolCodec!=null ) {
         this.protocolCodec.setReadableByteChannel(this)
         this.protocolCodec.setWritableByteChannel(this)
+        this.protocolCodec match {
+          case protocolCodec:TransportAware => protocolCodec.setTransport(this);
+          case _ =>
+        }
       }
     }
 



Mime
View raw message