You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by fa...@apache.org on 2018/10/18 22:34:36 UTC

svn commit: r1844291 - /xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeImpl.java

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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org