You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "xin du (JIRA)" <ax...@ws.apache.org> on 2007/03/12 19:21:09 UTC
[jira] Created: (AXIS-2638) NullPointerException thrown by
org.apache.axis.wsdl.toJava.Utils.getEnumerationBaseAndValues()
NullPointerException thrown by org.apache.axis.wsdl.toJava.Utils.getEnumerationBaseAndValues()
----------------------------------------------------------------------------------------------
Key: AXIS-2638
URL: https://issues.apache.org/jira/browse/AXIS-2638
Project: Axis
Issue Type: Bug
Components: WSDL processing
Affects Versions: 1.4
Reporter: xin du
When I call org.apache.axis.wsdl.toJava.Utils.getEnumerationBaseAndValues() to parse a wsdl section like
xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Operation"/>
<xs:enumeration value="ResponseGroup"/>
</xs:restriction>
</xs:simpleType>
I am getting NullPointerException at line 384 of Utils.java
if (javaName.equals("boolean").
After I change if (javaName.equals("boolean"). to if ("boolean".equals(javaName)), I get the desired result.
Thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org