You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2018/06/26 11:33:00 UTC
[jira] [Updated] (JCR-4324) Shouldn't get a NPE on
Version.getLinearPredecessor() implementation
[ https://issues.apache.org/jira/browse/JCR-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated JCR-4324:
--------------------------------
Affects Version/s: (was: 2.4.3)
> Shouldn't get a NPE on Version.getLinearPredecessor() implementation
> --------------------------------------------------------------------
>
> Key: JCR-4324
> URL: https://issues.apache.org/jira/browse/JCR-4324
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: core
> Affects Versions: 2.16.1
> Reporter: Bérénice MAUREL
> Priority: Major
>
> I get a NullPointerException when I'm trying to get the predecessor of the root version with \{{myVersion.getLinearPredecessor()}} method.
> In the documentation, I should get null. But in the implementation {{org.apache.jackrabbit.core.version.VersionImpl}}, I get a NPE if the predecessor is empty (for the node \{{jcr:rootVersion}}).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)