You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2013/04/29 16:54:15 UTC

[jira] [Updated] (OAK-800) EffectiveType#getTypeNames may throw NPE

     [ https://issues.apache.org/jira/browse/OAK-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated OAK-800:
--------------------------------

    Description: 
_EffectiveType#getTypeNames_ may throw NPE if any of the types doesn't have _oak:supertypes_ property defined.

At line 200: 
{code}
    Iterables.addAll(names, type.getProperty("oak:supertypes").getValue(NAMES));
{code}

where _type.getProperty("oak:supertypes") may be null (as per _@CheckForNull_ annotation on _NodeState#getProperty(String name)_).

  was:
_EffectiveType#getTypeNames_ may throw NPE if any of the types doesn't have _oak:supertypes_ property defined.

At line 200: 
{code}
    Iterables.addAll(names, type.getProperty("oak:supertypes").getValue(NAMES));
{code}

where _type.getProperty("oak:supertypes") may be _null_ (as per _@CheckForNull_ annotation on _NodeState#getProperty(String name)_).

    
> EffectiveType#getTypeNames may throw NPE
> ----------------------------------------
>
>                 Key: OAK-800
>                 URL: https://issues.apache.org/jira/browse/OAK-800
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Tommaso Teofili
>            Priority: Minor
>
> _EffectiveType#getTypeNames_ may throw NPE if any of the types doesn't have _oak:supertypes_ property defined.
> At line 200: 
> {code}
>     Iterables.addAll(names, type.getProperty("oak:supertypes").getValue(NAMES));
> {code}
> where _type.getProperty("oak:supertypes") may be null (as per _@CheckForNull_ annotation on _NodeState#getProperty(String name)_).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira