Avoid empty default domain name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@937977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c9b5ed4ae0
commit
9f745a7f83
1 changed files with 5 additions and 1 deletions
|
@ -248,7 +248,11 @@ public abstract class NodeFactory extends DefaultNodeConfigurationFactory {
|
|||
if (qm < 0) {
|
||||
properties.setProperty("defaultDomainName", configURI);
|
||||
} else {
|
||||
properties.setProperty("defaultDomainName", configURI.substring(0, qm));
|
||||
if (qm == 0) {
|
||||
properties.setProperty("defaultDomainName", "default");
|
||||
} else {
|
||||
properties.setProperty("defaultDomainName", configURI.substring(0, qm));
|
||||
}
|
||||
if (configURI.length() > qm+1) {
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
for (String param : configURI.substring(qm+1).split("&")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue