Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4324

NPE on Version.getLinearPredecessor() implementation

    XMLWordPrintableJSON

    Details

      Description

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

        Attachments

        1. JCR-4324.diff
          2 kB
          Julian Reschke

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bim Bérénice MAUREL
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: