lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-6449) NullPointerException in PostingsHighlighter
Date Fri, 24 Apr 2015 22:21:39 GMT

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

Michael McCandless resolved LUCENE-6449.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 5.2
                   Trunk

Thanks Roman!

> NullPointerException in PostingsHighlighter
> -------------------------------------------
>
>                 Key: LUCENE-6449
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6449
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>    Affects Versions: 5.1
>            Reporter: Roman Khmelichek
>            Assignee: Michael McCandless
>             Fix For: Trunk, 5.2
>
>         Attachments: postingshighlighter.patch
>
>
> In case an index segment does not have any docs with the field requested for highlighting
indexed, there should be a null check immediately following this line (in PostingsHighlighter.java):
> Terms t = r.terms(field);
> Looks like the null check was moved in the 5.1 release and this is occasionally causing
a NullPointerException in my near-realtime searcher.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message