Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4712

NullPointer Exception in MemoryIndex.MemoryIndexReader

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1
    • 4.2, 6.0
    • modules/other
    • None
    • New, Patch Available

    Description

      NullPointer Exceptions when searching on an index with a query that has a field that's not in the index.

      The NullPointer is thrown at line 1141:

      public DocValues normValues(String field) {
      if (fieldInfos.get(field).omitsNorms()) <---- //If fieldInfos doesn't contain the field then a NullPointer is thrown.
      return null;

      Attachments

        1. LUCENE-4712.patch
          3 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            originalsosa Ricky Pritchett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: