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

Trying to remove a missing property throws PathNotFoundException

    XMLWordPrintableJSON

Details

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

    Description

      The following code snippet throws a PathNotFoundException if the "missing" property is not present.

      node.setProperty("missing", (String) null);
      

      A better way to handle such a case would be for the above statement to simply do nothing.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: