activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r373809 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Date Tue, 31 Jan 2006 12:33:48 GMT
Author: jstrachan
Date: Tue Jan 31 04:33:44 2006
New Revision: 373809

URL: http://svn.apache.org/viewcvs?rev=373809&view=rev
Log:
removed possible NPE

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java?rev=373809&r1=373808&r2=373809&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Tue Jan 31 04:33:44 2006
@@ -99,7 +99,9 @@
                 }
                 
             }
-            transportListener.onCommand(command);
+            if (transportListener != null) {
+                transportListener.onCommand(command);
+            }
         }
 
         public void onException(IOException error) {



Mime
View raw message