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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2015/12/11 12:23:10 UTC

[jira] [Updated] (OAK-3123) NPE in RecordIdMap

     [ https://issues.apache.org/jira/browse/OAK-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig updated OAK-3123:
-------------------------------
    Labels: candidate_oak_1_0 candidate_oak_1_2  (was: )

> NPE in RecordIdMap
> ------------------
>
>                 Key: OAK-3123
>                 URL: https://issues.apache.org/jira/browse/OAK-3123
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: candidate_oak_1_0, candidate_oak_1_2
>             Fix For: 1.3.4
>
>
> {{RecordIdMap}} is not properly guarded against NPEs when calling accessors on an empty map (which is represented by {{keys == null}}. 
> {noformat}
> testRecordIdMap(org.apache.jackrabbit.oak.plugins.segment.RecordIdMapTest)  Time elapsed: 0.019 sec  <<< ERROR!
> java.lang.NullPointerException
> at org.apache.jackrabbit.oak.plugins.segment.RecordIdMap.size(RecordIdMap.java:100)
> at org.apache.jackrabbit.oak.plugins.segment.RecordIdMapTest.testRecordIdMap(RecordIdMapTest.java:64)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)