You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2004/11/22 12:18:29 UTC

[jira] Closed: (JCR-21) NodeTypeRegistry.validateNodeTypeDef causes NullPointerException

     [ http://nagoya.apache.org/jira/browse/JCR-21?page=history ]
     
Stefan Guggisberg closed JCR-21:
--------------------------------


> 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:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira