cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r657922 - /cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Date Mon, 19 May 2008 19:08:12 GMT
Author: dkulp
Date: Mon May 19 12:08:11 2008
New Revision: 657922

URL: http://svn.apache.org/viewvc?rev=657922&view=rev
Log:
Add a guard NPE check

Modified:
    cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java

Modified: cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java?rev=657922&r1=657921&r2=657922&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
(original)
+++ cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Mon May 19 12:08:11 2008
@@ -362,10 +362,12 @@
         Mapping mapping = rawJaxbModelGenCode.get(wrapperElement);
         if (mapping != null) {
             List<? extends Property> propList = mapping.getWrapperStyleDrilldown();
-            for (Property pro : propList) {
-                if (pro.elementName().getNamespaceURI().equals(item.getNamespaceURI())
-                    && pro.elementName().getLocalPart().equals(item.getLocalPart()))
{
-                    return pro.type().fullName();
+            if (propList != null) {
+                for (Property pro : propList) {
+                    if (pro.elementName().getNamespaceURI().equals(item.getNamespaceURI())
+                        && pro.elementName().getLocalPart().equals(item.getLocalPart()))
{
+                        return pro.type().fullName();
+                    }
                 }
             }
         }



Mime
View raw message