ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r584795 - /ode/trunk/axis2/src/main/java/org/apache/ode/axis2/util/SoapMessageConverter.java
Date Mon, 15 Oct 2007 14:12:45 GMT
Author: mriou
Date: Mon Oct 15 07:12:45 2007
New Revision: 584795

URL: http://svn.apache.org/viewvc?rev=584795&view=rev
Log:
Potential NPE when building a SOAP fault.

Modified:
    ode/trunk/axis2/src/main/java/org/apache/ode/axis2/util/SoapMessageConverter.java

Modified: ode/trunk/axis2/src/main/java/org/apache/ode/axis2/util/SoapMessageConverter.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/util/SoapMessageConverter.java?rev=584795&r1=584794&r2=584795&view=diff
==============================================================================
--- ode/trunk/axis2/src/main/java/org/apache/ode/axis2/util/SoapMessageConverter.java (original)
+++ ode/trunk/axis2/src/main/java/org/apache/ode/axis2/util/SoapMessageConverter.java Mon
Oct 15 07:12:45 2007
@@ -264,7 +264,8 @@
         SOAPFaultReason reason = _soapFactory.createSOAPFaultReason(fault);
         reason.setText(faultName);
         SOAPFaultDetail soapDetail = _soapFactory.createSOAPFaultDetail(fault);
-        soapDetail.addDetailEntry(detail.getFirstElement());
+        if (detail != null)
+            soapDetail.addDetailEntry(detail.getFirstElement());
         return fault;
     }
 



Mime
View raw message