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 2007/06/12 03:54:26 UTC

[jira] Created: (JCR-970) ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException

ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException
-----------------------------------------------------------------------------

                 Key: JCR-970
                 URL: https://issues.apache.org/jira/browse/JCR-970
             Project: Jackrabbit
          Issue Type: Bug
          Components: jcr-mapping
            Reporter: Felix Meschberger


When a Class Descriptor has no jcrNodeType set, which is allowed, the ClassDescriptor.getDescendantClassDescriptor will throw a NullPointerException when checking the descriptor. This may easily be prevent by reverting the test for the jcr nodetype.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-970) ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated JCR-970:
----------------------------------

    Attachment: JCR-970.diff

Proposed fix.

> ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-970
>                 URL: https://issues.apache.org/jira/browse/JCR-970
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>            Reporter: Felix Meschberger
>         Attachments: JCR-970.diff
>
>
> When a Class Descriptor has no jcrNodeType set, which is allowed, the ClassDescriptor.getDescendantClassDescriptor will throw a NullPointerException when checking the descriptor. This may easily be prevent by reverting the test for the jcr nodetype.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-970) ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-970:
------------------------------

    Fix Version/s:     (was: 1.4)

> ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-970
>                 URL: https://issues.apache.org/jira/browse/JCR-970
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>         Attachments: JCR-970.diff
>
>
> When a Class Descriptor has no jcrNodeType set, which is allowed, the ClassDescriptor.getDescendantClassDescriptor will throw a NullPointerException when checking the descriptor. This may easily be prevent by reverting the test for the jcr nodetype.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (JCR-970) ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed JCR-970.
---------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.4
         Assignee: Felix Meschberger

This is actually a duplicate of JCR-1143 (or the other way around) and has already been fixed. So, I close this issue as a duplicate.

Thanks for the reminder.

> ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-970
>                 URL: https://issues.apache.org/jira/browse/JCR-970
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 1.4
>
>         Attachments: JCR-970.diff
>
>
> When a Class Descriptor has no jcrNodeType set, which is allowed, the ClassDescriptor.getDescendantClassDescriptor will throw a NullPointerException when checking the descriptor. This may easily be prevent by reverting the test for the jcr nodetype.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-970) ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException

Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534599 ] 

Christophe Lombart commented on JCR-970:
----------------------------------------

Felix, 

Sorry for the delay but is it still necessary to work on this issue ? 

> ClassDescriptor.getDescendantClassDescriptor may throw a NullPointerException
> -----------------------------------------------------------------------------
>
>                 Key: JCR-970
>                 URL: https://issues.apache.org/jira/browse/JCR-970
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jcr-mapping
>            Reporter: Felix Meschberger
>         Attachments: JCR-970.diff
>
>
> When a Class Descriptor has no jcrNodeType set, which is allowed, the ClassDescriptor.getDescendantClassDescriptor will throw a NullPointerException when checking the descriptor. This may easily be prevent by reverting the test for the jcr nodetype.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.