activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r961165 - /activemq/sandbox/activemq-apollo-actor/activemq-tcp/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java
Date Wed, 07 Jul 2010 04:12:54 GMT
Author: chirino
Date: Wed Jul  7 04:12:54 2010
New Revision: 961165

URL: http://svn.apache.org/viewvc?rev=961165&view=rev
Log:
Protect against a NPE.

Modified:
    activemq/sandbox/activemq-apollo-actor/activemq-tcp/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java

Modified: activemq/sandbox/activemq-apollo-actor/activemq-tcp/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-apollo-actor/activemq-tcp/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java?rev=961165&r1=961164&r2=961165&view=diff
==============================================================================
--- activemq/sandbox/activemq-apollo-actor/activemq-tcp/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java
(original)
+++ activemq/sandbox/activemq-apollo-actor/activemq-tcp/src/main/java/org/apache/activemq/transport/tcp/TcpTransport.java
Wed Jul  7 04:12:54 2010
@@ -522,14 +522,14 @@ public class TcpTransport extends BaseSe
     }
 
     public void suspendRead() {
-        if( isConnected() ) {
+        if( isConnected() && readSource!=null ) {
             readSource.suspend();
         }
     }
 
 
     public void resumeRead() {
-        if( isConnected() ) {
+        if( isConnected() && readSource!=null ) {
             readSource.resume();
         }
     }



Mime
View raw message