summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/assembly
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-07-04 23:14:44 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-07-04 23:14:44 +0000
commit8ef57fdf120e8c1fe5e802e412961831ce70b1f7 (patch)
treef4d1cfe33a4638b14c1d31fb0c42020f783a1e08 /java/sca/modules/assembly
parent37f723b991d3d05ab878aa8934ca57287bc2da0f (diff)
TUSCANY-2459 - If a binding uri is malformed don't try to use it to go looking for target services
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@674138 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
index 34deb0dc41..544240d07e 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
@@ -588,7 +588,15 @@ class BaseWireBuilderImpl {
// - if it doesn't it is assumed to be an external reference
Component targetComponent = null;
ComponentService targetComponentService = null;
- String path = URI.create(uri).getPath();
+ String path = null;
+
+ try {
+ path = URI.create(uri).getPath();
+ } catch(Exception ex){
+ // just assume that no target is identified if
+ // a URI related exception is thrown
+ }
+
if (path != null) {
if (path.startsWith("/")) {
path = path.substring(1);