diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-26 09:19:30 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-26 09:19:30 +0000 |
commit | 9f745a7f8306feb32f4dba44d819429c43662ab6 (patch) | |
tree | 72391ffb0ea99199d1f0dde1413177ffccb75e59 /sca-java-2.x/trunk/modules/node-api | |
parent | c9b5ed4ae03d075c3f2c88870c19d0271c57ae9e (diff) |
Avoid empty default domain name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@937977 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-api')
-rw-r--r-- | sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java b/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java index adef3dffb0..dcb20c81f6 100644 --- a/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java +++ b/sca-java-2.x/trunk/modules/node-api/src/main/java/org/apache/tuscany/sca/node/NodeFactory.java @@ -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("&")) { |