Types' isSimpleType method doesn't work when tm is null. However, in
some cases (mostly document/literal custom schema type), tm may be null.
This patch adds logic to the method so that it returns false if tm is
null.
Thanks,
Ias.
===========================================================
Lee, Changshin (Korean name)
Ias (International name)
Company Web Site: http://www.tmax.co.kr
Personal Web Site: http://www.iasandcb.pe.kr
---------------------------------------------------------
R&D Institute
Tmax Soft, Inc.
==========================================================
Index: Types.java
===================================================================
RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Types.java,v
retrieving revision 1.75
diff -u -r1.75 Types.java
--- Types.java 4 May 2003 01:37:46 -0000 1.75
+++ Types.java 25 Jun 2003 12:49:22 -0000
@@ -929,6 +929,10 @@
* @return true if the type is a simple type
*/
boolean isSimpleType(Class type) {
+ if (tm == null)
+ {
+ return false;
+ }
QName qname = tm.getTypeQName(type);
if (qname == null)
return false; // No mapping