throw a best-effort NPE from kuromoji if you don't consume the TS correctly

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1401461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-10-23 20:53:12 +00:00
parent e670e32471
commit 22f119d50c
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ public final class JapaneseTokenizer extends Tokenizer {
outputCompounds = false;
break;
}
buffer.reset(input);
buffer.reset(null); // best effort NPE consumers that don't call reset()
resetState();