jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (JCR-4324) NPE on Version.getLinearPredecessor() implementation
Date Sat, 04 Aug 2018 12:38:00 GMT

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

Julian Reschke edited comment on JCR-4324 at 8/4/18 12:37 PM:
--------------------------------------------------------------

trunk: [r1834424|http://svn.apache.org/r1834424]
2.16: [r1836031|http://svn.apache.org/r1836031]
2.14: [r1837415|http://svn.apache.org/r1837415]



was (Author: reschke):
trunk: [r1834424|http://svn.apache.org/r1834424]
2.16: [r1836031|http://svn.apache.org/r1836031]


> 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
>              Labels: candidate_jcr_2_12
>             Fix For: 2.18, 2.14.6, 2.17.4, 2.16.3
>
>         Attachments: JCR-4324.diff
>
>
> 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)

Mime
View raw message