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 "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/11/10 10:05:58 UTC
[jira] [Updated] (OAK-4925) Don't call @Nonnull
TypeEditor.getEffective() from constructor
[ https://issues.apache.org/jira/browse/OAK-4925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated OAK-4925:
--------------------------------
Fix Version/s: 1.6
> Don't call @Nonnull TypeEditor.getEffective() from constructor
> --------------------------------------------------------------
>
> Key: OAK-4925
> URL: https://issues.apache.org/jira/browse/OAK-4925
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Fix For: 1.6, 1.5.13
>
>
> {{TypeEditor.getEffective()}} is declared {{@Nonnull}}. However when called from within the constructor and before its underlying field {{effective}} is initialised in actually *does* return {{null}}. The fix would be to avoid calling this method from the constructor.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)