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

Michael Dürig resolved OAK-3123.
--------------------------------
    Resolution: Fixed

Fixed at http://svn.apache.org/r1691965

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

Reply via email to