You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Grant Ingersoll (JIRA)" <ji...@apache.org> on 2008/06/05 18:01:47 UTC
[jira] Created: (LUCENE-1299) Spell Checker suggestSimilar throws
NPE when IndexReader is not null and field is null
Spell Checker suggestSimilar throws NPE when IndexReader is not null and field is null
--------------------------------------------------------------------------------------
Key: LUCENE-1299
URL: https://issues.apache.org/jira/browse/LUCENE-1299
Project: Lucene - Java
Issue Type: Bug
Components: contrib/spellchecker
Reporter: Grant Ingersoll
Assignee: Grant Ingersoll
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1299) Spell Checker suggestSimilar throws
NPE when IndexReader is not null and field is null
Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll updated LUCENE-1299:
------------------------------------
Attachment: LUCENE-1299.patch
Patch to properly handle null field
> Spell Checker suggestSimilar throws NPE when IndexReader is not null and field is null
> --------------------------------------------------------------------------------------
>
> Key: LUCENE-1299
> URL: https://issues.apache.org/jira/browse/LUCENE-1299
> Project: Lucene - Java
> Issue Type: Bug
> Components: contrib/spellchecker
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Attachments: LUCENE-1299.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1299) Spell Checker suggestSimilar throws
NPE when IndexReader is not null and field is null
Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll resolved LUCENE-1299.
-------------------------------------
Resolution: Fixed
Lucene Fields: (was: [Patch Available, New])
Committed revision 663649.
> Spell Checker suggestSimilar throws NPE when IndexReader is not null and field is null
> --------------------------------------------------------------------------------------
>
> Key: LUCENE-1299
> URL: https://issues.apache.org/jira/browse/LUCENE-1299
> Project: Lucene - Java
> Issue Type: Bug
> Components: contrib/spellchecker
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Attachments: LUCENE-1299.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org