You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2008/07/26 01:07:31 UTC

[jira] Assigned: (SOLR-661) NPE in SpellingQueryConverter when used with q.alt=*:*

     [ https://issues.apache.org/jira/browse/SOLR-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley reassigned SOLR-661:
----------------------------------

    Assignee: Ryan McKinley

> NPE in SpellingQueryConverter when used with q.alt=*:*
> ------------------------------------------------------
>
>                 Key: SOLR-661
>                 URL: https://issues.apache.org/jira/browse/SOLR-661
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Kalyan Manepalli
>            Assignee: Ryan McKinley
>
> SpellingQueryConverter throws NPE when used with q.alt=*:*
> The issue being the String original will be passed as null when q.alt=*:*. I think the required behavior should be when original string is null, just return the empty result.
> Here is the code snippet with suggested change
> {code}
>   public Collection<Token> convert(String original) {
>     Collection<Token> result = new ArrayList<Token>();
>     if(original ==null){ //usecase with q.alt=*:*
>     	return result;
>     }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.