[
https://issues.apache.org/jira/browse/OAK-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645309#comment-13645309
]
Tommaso Teofili commented on OAK-800:
-------------------------------------
bq. 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.
yes, this showed up when trying to upgrade a 0.6 Oak repository to 0.7, however
your suggestion (and fix) looks good, using _getNames()_ is better.
> 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