You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/10/01 00:07:09 UTC
svn commit: r451681 -
/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Author: dims
Date: Sat Sep 30 15:07:09 2006
New Revision: 451681
URL: http://svn.apache.org/viewvc?view=rev&rev=451681
Log:
Prevent NPE
Modified:
webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?view=diff&rev=451681&r1=451680&r2=451681
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java Sat Sep 30 15:07:09 2006
@@ -1375,7 +1375,7 @@
Object type = baseSchemaTypeMap.get(attrTypeName);
if (type == null) {
XmlSchemaSimpleType simpleType = attribute.getSchemaType();
- if(simpleType.getContent() instanceof XmlSchemaSimpleTypeRestriction) {
+ if(simpleType != null && simpleType.getContent() instanceof XmlSchemaSimpleTypeRestriction) {
XmlSchemaSimpleTypeRestriction restriction = (XmlSchemaSimpleTypeRestriction) simpleType.getContent();
QName baseTypeName = restriction.getBaseTypeName();
type = baseSchemaTypeMap.get(baseTypeName);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org