activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r379725 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
Date Wed, 22 Feb 2006 07:58:28 GMT
Author: jstrachan
Date: Tue Feb 21 23:58:26 2006
New Revision: 379725

URL: http://svn.apache.org/viewcvs?rev=379725&view=rev
Log:
added extra check for null pointer exception

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java?rev=379725&r1=379724&r2=379725&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
Tue Feb 21 23:58:26 2006
@@ -80,6 +80,9 @@
             }
             location=new URI("vm://"+host);
         }
+        if (host == null) {
+            host = "localhost";
+        }
         VMTransportServer server=(VMTransportServer) servers.get(host);
         // validate the broker is still active
         if(!validateBroker(host)||server==null){



Mime
View raw message