xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r124990 - /xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java
Date Wed, 12 Jan 2005 20:39:27 GMT
Author: radup
Date: Wed Jan 12 12:39:25 2005
New Revision: 124990

URL: http://svn.apache.org/viewcvs?view=rev&rev=124990
Log:
Fixed an NPE in SchemaTypeImpl.getElementType().

Modified:
   xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java
Url: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java?view=diff&rev=124990&p1=xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java&r1=124989&p2=xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java&r2=124990
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java	(original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java	Wed Jan
12 12:39:25 2005
@@ -872,7 +872,7 @@
             {
                 // Substitution groups
                 SchemaGlobalElement elt = wildcardTypeLoader.findElement(eltName);
-                SchemaGlobalElement head = elt.substitutionGroup();
+                SchemaGlobalElement head = elt == null ? null : elt.substitutionGroup();
                 if (head == null)
                     return BuiltinSchemaTypeSystem.ST_NO_TYPE;
                 prop = (SchemaProperty)_propertyModelByElementName.get(head.getName());

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message