mirror of https://github.com/apache/activemq.git
added extra check for null pointer exception
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@379725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d61be6ce2
commit
277f3b3d5a
|
@ -80,6 +80,9 @@ public class VMTransportFactory extends TransportFactory{
|
||||||
}
|
}
|
||||||
location=new URI("vm://"+host);
|
location=new URI("vm://"+host);
|
||||||
}
|
}
|
||||||
|
if (host == null) {
|
||||||
|
host = "localhost";
|
||||||
|
}
|
||||||
VMTransportServer server=(VMTransportServer) servers.get(host);
|
VMTransportServer server=(VMTransportServer) servers.get(host);
|
||||||
// validate the broker is still active
|
// validate the broker is still active
|
||||||
if(!validateBroker(host)||server==null){
|
if(!validateBroker(host)||server==null){
|
||||||
|
|
Loading…
Reference in New Issue