SOLR-1005 - DoubleMetaphone Filter Produces NullpointerException on zero-length token

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@741721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2009-02-06 21:04:20 +00:00
parent 23099323d5
commit 572d84c9c2
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class DoubleMetaphoneFilter extends TokenFilter {
}
Token t = input.next(in);
if (t != null) {
if (t != null && t.termLength() > 0) {
if (inject) {
remainingTokens.addLast(t);
}