jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-21) NodeTypeRegistry.validateNodeTypeDef causes NullPointerException
Date Mon, 22 Nov 2004 10:24:37 GMT
NodeTypeRegistry.validateNodeTypeDef causes NullPointerException

         Key: JCR-21
         URL: http://nagoya.apache.org/jira/browse/JCR-21
     Project: Jackrabbit
        Type: Bug
 Environment: Jackrabbit SVN 106171
    Reporter: Felix Meschberger

NodeTypeRegistry.registerNodeType(NodeTypeDef) checks the given node type definition for circular
inheritance (amongst other things, of course). If the the node type definition does not contain
a list of super types, the validateNodeTypeDef() (line 442) causes a NullPointerException
being thrown in checkForCircularInheritance() because the "supertypes" variable is null and
is not being checked.

Interestingly the other accesses to the same supertypes object in validNodeTypeDef() are all
guarded against null and length==0. Might be an ommission.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message