Author: fanningpj
Date: Thu Oct 18 22:34:36 2018
New Revision: 1844291

URL: http://svn.apache.org/viewvc?rev=1844291&view=rev
Log:
XMLBEANS-511: fix NPE in SchemaTypeImpl.isAssignableFrom()

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/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java?rev=1844291&r1=1844290&r2=1844291&view=diff
==============================================================================
--- 
xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java 
(original)
+++ 
xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java 
Thu Oct 18 22:34:36 2018
@@ -2271,7 +2271,7 @@ public final class SchemaTypeImpl implem
             type = type.getBaseType();
             depth -= 1;
         }
-        return (type.equals(this));
+        return (type != null && type.equals(this));
     }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to