cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1186385 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
Date Wed, 19 Oct 2011 18:27:14 GMT
Author: dkulp
Date: Wed Oct 19 18:27:13 2011
New Revision: 1186385

URL: http://svn.apache.org/viewvc?rev=1186385&view=rev
Log:
[CXF-3829] Add and NPE guard

Modified:
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java?rev=1186385&r1=1186384&r2=1186385&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
Wed Oct 19 18:27:13 2011
@@ -648,6 +648,9 @@ public class ServiceProcessor extends Ab
     }
 
     private BindingType getBindingType(BindingInfo binding) {
+        if (binding.getExtensors(ExtensibilityElement.class) == null) {
+            return null;
+        }
         for (ExtensibilityElement ext : binding.getExtensors(ExtensibilityElement.class))
{
             if (SOAPBindingUtil.isSOAPBinding(ext)) {
                 bindingObj = SOAPBindingUtil.getSoapBinding(ext);



Mime
View raw message