axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1641974 - /axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
Date Thu, 27 Nov 2014 00:55:36 GMT
Author: nadiramra
Date: Thu Nov 27 00:55:36 2014
New Revision: 1641974

URL: http://svn.apache.org/r1641974
Log:
The base type may not have been processed and causing NPE. 

Modified:
    axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java

Modified: axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java?rev=1641974&r1=1641973&r2=1641974&view=diff
==============================================================================
--- axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java (original)
+++ axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java Thu Nov 27
00:55:36 2014
@@ -929,7 +929,7 @@ public class WSDLInfo
      * NEEDS WORK - CURRENTLY THE ONLY THING WE DO IS GENERATE ENUMERATOR CONSTANTS AND CREATE
      * AN EMPTY RESTRICTOR FUNCTION WHEN DOING CODE GENERATION STEP.
      */
-    private void setRestrictionBaseAndValues(Type typedata, Node node) 
+    private void setRestrictionBaseAndValues(Type typedata, Node node)  throws WrapperFault
     {
         if (node == null)
             return;
@@ -1053,7 +1053,19 @@ public class WSDLInfo
                 else
                     primitiveBaseTypeQName = baseEType.getQName();
                 
+                if (c_verbose)
+                    System.out.println("primitiveBaseTypeQName=" + primitiveBaseTypeQName);
+                
                 classForPrimitiveType =  CUtils.getSimpleType(primitiveBaseTypeQName);
+                while (classForPrimitiveType == null)
+                {
+                    createTypeInfo(primitiveBaseTypeQName);
+                    classForPrimitiveType =  CUtils.getSimpleType(primitiveBaseTypeQName);
+                }
+                
+                if (c_verbose)
+                    System.out.println("classForPrimitiveType=" + classForPrimitiveType);
+
                 initValueForType      =  CUtils.getInitValueForType(classForPrimitiveType);
                 
                 // Set the base type for Type



Mime
View raw message