You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2013/10/31 05:48:32 UTC

[jira] [Commented] (OAK-1135) NPE in CompiledPermissionImpl.getTreePermission()

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

Tobias Bocanegra commented on OAK-1135:
---------------------------------------

I fixed the issue (in revision 1537376) by checking the TreeLocation, but I don't think that the solution is correct. Also when debugging the code, it seems overly complicated and creates many extra objects for each access check of a property. I created OAK-1136 to track this.

> NPE in CompiledPermissionImpl.getTreePermission()
> -------------------------------------------------
>
>                 Key: OAK-1135
>                 URL: https://issues.apache.org/jira/browse/OAK-1135
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Tobias Bocanegra
>             Fix For: 0.11
>
>
> I don't know exactly why and when, but accessing an property in the version store can yield to an NPE in CompiledPermissionImpl.getTreePermission() if the TreeLocation is a PropertyLocation. then TreeLocation.getTree() returbs NULL and subsequently causes a NPE.



--
This message was sent by Atlassian JIRA
(v6.1#6144)