[ https://issues.apache.org/jira/browse/SOLR-661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley resolved SOLR-661. -------------------------------- Resolution: Fixed Fix Version/s: 1.3 fixed in 679925. thanks Kalyan > 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 > Fix For: 1.3 > > > 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.