diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-api/src/main/java/org')
-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("&")) { |