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

Spell Checker suggestSimilar throws NPE when IndexReader is not null and field is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • modules/spellchecker
    • None

    Description

      The SpellChecker.suggestSimilar(String word, int numSug, IndexReader ir, String field, boolean morePopular) throws a NullPointerException when the IndexReader is not null, but the Field is. The Javadocs say that it is fine to have the field be null, but doesn't comment on the fact that the IndexReader also needs to be null in that case.

      Attachments

        1. LUCENE-1299.patch
          2 kB
          Grant Ingersoll

        Activity

          People

            gsingers Grant Ingersoll
            gsingers Grant Ingersoll
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: