You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/08/29 19:04:09 UTC

[jira] [Resolved] (OAK-286) Possible NPE in LuceneIndex

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

Alex Parvulescu resolved OAK-286.
---------------------------------

    Resolution: Fixed

thanks Tommaso!

fixed with revision 1378643.
                
> Possible NPE in LuceneIndex
> ---------------------------
>
>                 Key: OAK-286
>                 URL: https://issues.apache.org/jira/browse/OAK-286
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.4
>            Reporter: Tommaso Teofili
>            Priority: Trivial
>             Fix For: 0.5
>
>         Attachments: OAK-286.patch
>
>
> in LuceneIndex#getQuery(Filter) the first variable is initialized to null and updated to a meaningful value only if pr.first is not null, thus it may result in NPE when calling first.equals(last) (line 168).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira