Issue Details (XML | Word | Printable)

Key: LUCENE-1299
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Grant Ingersoll
Reporter: Grant Ingersoll
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

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

Created: 05/Jun/08 04:01 PM   Updated: 05/Jun/08 04:12 PM
Return to search
Component/s: contrib/spellchecker
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1299.patch 2008-06-05 04:09 PM Grant Ingersoll 2 kB

Resolution Date: 05/Jun/08 04:12 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.