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

NullPointer Exception in MemoryIndex.MemoryIndexReader

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.2, 6.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

            • Assignee:
              simonw Simon Willnauer
              Reporter:
              originalsosa Ricky Pritchett

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment