Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-213

Misleading exception message in NodeImpl#getParent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.4
    • None
    • None

    Description

      NodeImpl#getParent throws an exception with the following message if
      the underlying NodeDelegate doesn't expose the parent node:

      throw new ItemNotFoundException("Root has no parent");

      the parent might be null if it is not accessible and a null return
      value doesn't necessarily indicate that the current node is the root node.

      Attachments

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: