[ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616892#action_12616892 ]
Shalin Shekhar Mangar commented on SOLR-648: -------------------------------------------- Yes, I've added a testcase which fails otherwise. > SpellcheckComponent throws NullPointerException on restart without build > ------------------------------------------------------------------------ > > Key: SOLR-648 > URL: https://issues.apache.org/jira/browse/SOLR-648 > Project: Solr > Issue Type: Bug > Affects Versions: 1.3 > Reporter: Geoffrey Young > Assignee: Shalin Shekhar Mangar > Fix For: 1.3 > > Attachments: SOLR-648.patch, SOLR-648.patch, SOLR-648.patch > > > from > http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/[EMAIL > PROTECTED] > "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java > where the analyzer variable is only set on the build command. Therefore, > when the index is reloaded, but not built after starting solr, issuing a > query with the spellcheck.q parameter will cause a NullPointerException to > be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the > constructor seems to fix the problem." -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.