jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-185) Trying to remove a missing property throws PathNotFoundException
Date Thu, 12 Jul 2012 20:35:34 GMT
Jukka Zitting created OAK-185:
---------------------------------

             Summary: Trying to remove a missing property throws PathNotFoundException
                 Key: OAK-185
                 URL: https://issues.apache.org/jira/browse/OAK-185
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: jcr
    Affects Versions: 0.3
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor


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

{code:java}
node.setProperty("missing", (String) null);
{code}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message