You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/04/25 00:20:38 UTC

[jira] [Commented] (LUCENE-6449) NullPointerException in PostingsHighlighter

    [ https://issues.apache.org/jira/browse/LUCENE-6449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14511900#comment-14511900 ] 

ASF subversion and git services commented on LUCENE-6449:
---------------------------------------------------------

Commit 1675965 from [~mikemccand] in branch 'dev/trunk'
[ https://svn.apache.org/r1675965 ]

LUCENE-6449: fix NullPointerException when one segment is missing the highlighted field in its postings

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