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

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

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:
   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


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

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ 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:
   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


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

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://nagoya.apache.org/jira/browse/JCR-21?page=history ]
     
Stefan Guggisberg resolved JCR-21:
----------------------------------

    Resolution: Fixed

fixed in rev. 106172

> 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