summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org
diff options
context:
space:
mode:
authorscottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68>2011-11-29 16:20:23 +0000
committerscottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68>2011-11-29 16:20:23 +0000
commit7d05dbde4c419ada6ed2bf9a1eef16159bb51488 (patch)
treea7706eb191204dfd5604f4c9f6b9e72157a2bcb8 /sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org
parent242bdc10723d49b0716e9211ab7da3921284bfec (diff)
Fix for TUSCANY-3986. Thanks Rashmi.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1207942 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org')
-rw-r--r--sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
index 91ab4ec331..3c89c53b96 100644
--- a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
+++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
@@ -151,16 +151,17 @@ public class JAXWSBindingInvoker implements Invoker, DataExchangeSemantics {
public Message invoke(Message msg) {
try {
SOAPMessage resp = invokeTarget(msg);
- SOAPBody body = resp.getSOAPBody();
- if (body != null) {
- SOAPFault fault = body.getFault();
- if (fault != null) {
- // setFault(msg, fault);
- } else {
- // The 1st child element
- msg.setBody(body.getChildElements().next());
+ if (resp != null) {
+ SOAPBody body = resp.getSOAPBody();
+ if (body != null) {
+ SOAPFault fault = body.getFault();
+ if (fault != null) {
+ // setFault(msg, fault);
+ } else {
+ // The 1st child element
+ msg.setBody(body.getChildElements().next());
+ }
}
-
}
} catch (SOAPFaultException e) {
setFault(msg, e);