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
|
@ -287,7 +287,15 @@ public class TransportConnector implements Connector {
|
||||||
|
|
||||||
public String getName(){
|
public String getName(){
|
||||||
if(name==null){
|
if(name==null){
|
||||||
|
if(server!=null){
|
||||||
|
if(server.getConnectURI()!=null){
|
||||||
name=server.getConnectURI().toString();
|
name=server.getConnectURI().toString();
|
||||||
|
}else{
|
||||||
|
name = server.getClass() + ":Not started";
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
name = "NOT_SET";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue