Michael Dürig created OAK-3123:
----------------------------------
Summary: 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.2.3, 1.3.4, 1.0.17
{{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)