jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (JCR-21) NodeTypeRegistry.validateNodeTypeDef causes NullPointerException
Date Mon, 22 Nov 2004 11:18:28 GMT
     [ http://nagoya.apache.org/jira/browse/JCR-21?page=history ]

Stefan Guggisberg reassigned JCR-21:

    Assign To: Stefan Guggisberg

> 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
>     Assignee: Stefan Guggisberg

> 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