Lucene - Core
  1. Lucene - Core
  2. LUCENE-6449

NullPointerException in PostingsHighlighter

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2, 6.0
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available
    • Flags:
      Patch

      Description

      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.

        Activity

        Hide
        ASF subversion and git services added a comment -

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

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

        Show
        ASF subversion and git services added a comment - Commit 1675965 from Michael McCandless in branch 'dev/trunk' [ https://svn.apache.org/r1675965 ] LUCENE-6449 : fix NullPointerException when one segment is missing the highlighted field in its postings
        Hide
        ASF subversion and git services added a comment -

        Commit 1675966 from Michael McCandless in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1675966 ]

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

        Show
        ASF subversion and git services added a comment - Commit 1675966 from Michael McCandless in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1675966 ] LUCENE-6449 : fix NullPointerException when one segment is missing the highlighted field in its postings
        Hide
        Michael McCandless added a comment -

        Thanks Roman!

        Show
        Michael McCandless added a comment - Thanks Roman!
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Roman Khmelichek
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development