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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2015/08/21 14:13:57 UTC

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

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

Davide Giannella closed OAK-3123.
---------------------------------

Bulk close for 1.3.4

> 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
>             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)