[ 
https://issues.apache.org/jira/browse/OAK-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13644660#comment-13644660
 ] 

Jukka Zitting commented on OAK-800:
-----------------------------------

A better solution is to use the new {{getNames()}} method from OAK-776, see 
http://svn.apache.org/r1477203.

The {{RegistrationEditor}} class should take care of populating the 
{{oak:supertypes}} properties and other bits on which the {{TypeEditor}} 
depends. There's probably something wrong in the repository setup if type 
validation is run before the {{RegistrationEditor}} has had a chance to 
pre-compile the required extra type information needed by the validator.
                
> 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
>            Assignee: Tommaso Teofili
>            Priority: Minor
>             Fix For: 0.7
>
>
> _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

Reply via email to