From 2ae71698560f5e493cd1a7e68bc1dda6e8ef9da8 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 31 Jan 2006 12:33:44 +0000 Subject: [PATCH] removed possible NPE git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@373809 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/transport/failover/FailoverTransport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java b/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java index 9eb5bd712a..681c9524ef 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java @@ -99,7 +99,9 @@ public class FailoverTransport implements CompositeTransport { } } - transportListener.onCommand(command); + if (transportListener != null) { + transportListener.onCommand(command); + } } public void onException(IOException error) {