mirror of https://github.com/apache/lucene.git
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:
parent
e670e32471
commit
22f119d50c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue