servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r725993 - /servicemix/components/shared-libraries/trunk/servicemix-soap2/src/main/java/org/apache/servicemix/soap/wsdl/validator/WSIBPValidator.java
Date Fri, 12 Dec 2008 13:09:21 GMT
Author: gnodet
Date: Fri Dec 12 05:09:20 2008
New Revision: 725993

URL: http://svn.apache.org/viewvc?rev=725993&view=rev
Log:
Fix NPE when validating WSDL with an in-only operation

Modified:
    servicemix/components/shared-libraries/trunk/servicemix-soap2/src/main/java/org/apache/servicemix/soap/wsdl/validator/WSIBPValidator.java

Modified: servicemix/components/shared-libraries/trunk/servicemix-soap2/src/main/java/org/apache/servicemix/soap/wsdl/validator/WSIBPValidator.java
URL: http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-soap2/src/main/java/org/apache/servicemix/soap/wsdl/validator/WSIBPValidator.java?rev=725993&r1=725992&r2=725993&view=diff
==============================================================================
--- servicemix/components/shared-libraries/trunk/servicemix-soap2/src/main/java/org/apache/servicemix/soap/wsdl/validator/WSIBPValidator.java
(original)
+++ servicemix/components/shared-libraries/trunk/servicemix-soap2/src/main/java/org/apache/servicemix/soap/wsdl/validator/WSIBPValidator.java
Fri Dec 12 05:09:20 2008
@@ -209,9 +209,11 @@
                     validateDocLitBodyParts(binding, 
                                             WSDLUtils.getExtension(bop.getBindingInput(),
SOAPBody.class),
                                             bop.getOperation().getInput().getMessage());
-                    validateDocLitBodyParts(binding, 
-                                            WSDLUtils.getExtension(bop.getBindingOutput(),
SOAPBody.class),
-                                            bop.getOperation().getOutput().getMessage());
+                    if (bop.getOperation().getOutput() != null) {
+                        validateDocLitBodyParts(binding,
+                                                WSDLUtils.getExtension(bop.getBindingOutput(),
SOAPBody.class),
+                                                bop.getOperation().getOutput().getMessage());
+                    }
                 }
             }
             



Mime
View raw message