diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-03-23 09:56:28 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-03-23 09:56:28 +0000 |
commit | cf37829a4e02ff994207c890d40280fc0c2c7fea (patch) | |
tree | 63cdb9d0778d6ebc15b79f28af571db9d62493fd /sca-java-2.x/trunk | |
parent | 17771d14eb4c980d520344f9e6680e5ade5a90bd (diff) |
Tighten up the no address test to include checking for a null or empty URI
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1304254 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java index 994a67d632..01b9397697 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingInvoker.java @@ -326,7 +326,10 @@ public class Axis2ReferenceBindingInvoker implements Invoker { // use dynamically specified target endpoint passed in with the message if (options.getTo() == null) { Endpoint ep = msg.getTo(); - if (ep != null && ep.getBinding() != null) { + if (ep != null && + ep.getBinding() != null && + ep.getBinding().getURI() != null && + ep.getBinding().getURI().length() > 0) { address = ep.getBinding().getURI(); } else { throw new ServiceRuntimeException("[BWS20025] Unable to determine destination endpoint for endpoint reference " + endpointReference); |