Author: kstam
Date: Thu Jun  9 14:25:51 2011
New Revision: 1133888

URL: http://svn.apache.org/viewvc?rev=1133888&view=rev
Log:
JUDDI-494, fixing NPE when running on with JBossWS stack trying to get the 
DispositionReport when a SOAPFault is thrown.

Modified:
    
juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java

Modified: 
juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
URL: 
http://svn.apache.org/viewvc/juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java?rev=1133888&r1=1133887&r2=1133888&view=diff
==============================================================================
--- 
juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
 (original)
+++ 
juddi/trunk/uddi-ws/src/main/java/org/uddi/v3_service/DispositionReportFaultMessage.java
 Thu Jun  9 14:25:51 2011
@@ -94,7 +94,7 @@ public class DispositionReportFaultMessa
        } else if (e instanceof SOAPFaultException) {
                SOAPFaultException soapFault = (SOAPFaultException) e;
                Detail detail = soapFault.getFault().getDetail();
-               if (detail.getFirstChild()!=null) {
+               if (detail != null && detail.getFirstChild()!=null) {
                        try {
                                report =  new 
DispositionReport(detail.getFirstChild());
                        } catch (JAXBException je) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to