jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Giannella (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (OAK-3123) NPE in RecordIdMap
Date Fri, 21 Aug 2015 12:13:57 GMT

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

Mime
View raw message