diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-31 13:33:16 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-31 13:33:16 +0000 |
commit | c7af9a42e4f7a692312bde2fc0bceb20de328b39 (patch) | |
tree | 2d7a6657c76498902c3c558714e9652e06a6de29 /sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache | |
parent | 5e0bdd14667eeb43e281feab56f2c16b474388a0 (diff) |
Prevent NPE when the exception message is null
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@929533 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSServiceBindingProvider.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSServiceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSServiceBindingProvider.java index 048a9820cc..ff1327f070 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSServiceBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSServiceBindingProvider.java @@ -150,7 +150,9 @@ public class JAXWSServiceBindingProvider implements ServiceBindingProvider, Prov Detail d = fault.addDetail(); DetailEntry de = d.addDetailEntry(fe.getFaultName()); SOAPElement dece = de.addChildElement("message"); - dece.addTextNode(fe.getMessage()); + if (fe.getMessage() != null) { + dece.addTextNode(fe.getMessage()); + } } else { Element element = responseMsg.getBody(); response.getSOAPBody().addChildElement(soapFactory.createElement(element)); |