summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/node-impl/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-03-21 20:28:30 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-03-21 20:28:30 +0000
commit9b624f74edcead48b13634323224e2d972f7e6ce (patch)
tree9fc1a0f9cf0d49a0ca568d7e83dbe35ce9c7ec50 /sca-java-2.x/trunk/modules/node-impl/src
parentb8a63636ff2dbea555f14b42c5a49e1555e68f85 (diff)
Bring up the servlet-scoped node start/stop with Spring MVC
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1083940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-impl/src')
-rw-r--r--sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
index 0ff1a87fe9..2d46a8659b 100644
--- a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
+++ b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
@@ -336,10 +336,13 @@ public class NodeFactoryImpl extends NodeFactory {
URI contributionURI = createURI(contrib.getURI());
URI uri = createURI(contrib.getLocation());
- if (uri.getScheme() == null) {
+ if (uri != null && uri.getScheme() == null) {
uri = new File(contrib.getLocation()).toURI();
}
- URL contributionURL = uri.toURL();
+ URL contributionURL = null;
+ if (uri != null) {
+ contributionURL = uri.toURL();
+ }
// Load the contribution
logger.log(quietLogging? Level.FINE : Level.INFO, "Loading contribution: " + contributionURL);