mirror of https://github.com/apache/lucene.git
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:
parent
23099323d5
commit
572d84c9c2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue