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:
James Strachan 2006-02-22 07:58:26 +00:00
parent 1d61be6ce2
commit 277f3b3d5a
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ public class VMTransportFactory extends TransportFactory{
}
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){