I had null pointer exceptions left and right while composing this
email... then I added spellcheck.build=true to one and they went away.
do you need to rebuild the spelling index every time you alter (certain
parts) of solrconfig.xml? it was very consistent as reported below, but
after simply issuing a rebuild I can't reproduce the null pointer.
this seems to happen every time I stop and start solr.
o q=term&spellcheck.q=term - ok
o stop && start solr (we're using tomcat 6.0.16)
o q=term&spellcheck.q=term - null pointer
(SpellCheckComponent.getTokens(SpellCheckComponent.java:215))
o q=$term - ok
o q=term&spellcheck.q=term&spellcheck.build=true - ok
--Geoff