summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-05-05 11:01:40 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-05-05 11:01:40 +0000
commit2e4bea9bc1938da9159b71b814fd67423944f077 (patch)
treeeb86064376be93a850b632fbd9508e24cee0fa85 /sca-java-2.x/trunk/modules
parent49307611066f7e16d27eff50c4ba58e615164e19 (diff)
Avoid NPE if reg uri is null
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@941244 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ExtensibleDomainRegistryFactory.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ExtensibleDomainRegistryFactory.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ExtensibleDomainRegistryFactory.java
index 22429006aa..d1d0fb2b29 100644
--- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ExtensibleDomainRegistryFactory.java
+++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/ExtensibleDomainRegistryFactory.java
@@ -79,8 +79,7 @@ public class ExtensibleDomainRegistryFactory implements DomainRegistryFactory {
}
}
- URI uri = URI.create(endpointRegistryURI);
- String scheme = uri.getScheme();
+ String scheme = endpointRegistryURI == null ? null : URI.create(endpointRegistryURI).getScheme();
if (scheme == null) {
// See if there is a previously created registry for that domain