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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2016/10/11 16:49:20 UTC

[jira] [Resolved] (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 ]

Michael Dürig resolved OAK-4925.
--------------------------------
    Resolution: Fixed

Fixed at http://svn.apache.org/viewvc?rev=1764299&view=rev

> 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.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)