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
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.