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] [Commented] (OAK-110) NPE in KernelNodeStoreBranch.diffToJsop
Date Wed, 23 May 2012 11:32:40 GMT

    [ https://issues.apache.org/jira/browse/OAK-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281528#comment-13281528

Jukka Zitting commented on OAK-110:

Good catch, thanks!

I think it's a bit better if these cases are handled already in the NodeStateBuilder instead
of the resulting modified NodeState. I adjusted the code accordingly in revision 1341833.
> NPE in KernelNodeStoreBranch.diffToJsop 
> ----------------------------------------
>                 Key: OAK-110
>                 URL: https://issues.apache.org/jira/browse/OAK-110
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 0.3
> The NPE is causes by the diff algorithm introduced with OAK-109 passing {{null}} to {{NodeStateDiff.propertyAdded()}}
and {{NodeStateDiff.childNodeAdded()}}. This happens when a transiently added node/property
is again removed. 

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


View raw message