mirror of https://github.com/apache/activemq.git
fix for NPE
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@390411 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d68fe55933
commit
8f02ba6a53
|
@ -285,9 +285,17 @@ public class TransportConnector implements Connector {
|
||||||
connections.remove(connection);
|
connections.remove(connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName(){
|
||||||
if( name == null ) {
|
if(name==null){
|
||||||
name = server.getConnectURI().toString();
|
if(server!=null){
|
||||||
|
if(server.getConnectURI()!=null){
|
||||||
|
name=server.getConnectURI().toString();
|
||||||
|
}else{
|
||||||
|
name = server.getClass() + ":Not started";
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
name = "NOT_SET";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue