Tokenizer tokenizer
= new org.apache.lucene.analysis.standard.StandardTokenizer
(Version.LUCENE_41,new StringReader("!!!"));
tokenizer.incrementToken();
投掷
java.lang.NullPointerException
at org.apache.lucene.analysis.standard.std34.StandardTokenizerImpl34.zzRefill(StandardTokenizerImpl34.java:812)
at org.apache.lucene.analysis.standard.std34.StandardTokenizerImpl34.getNextToken(StandardTokenizerImpl34.java:1019)
at org.apache.lucene.analysis.standard.StandardTokenizer.incrementToken(StandardTokenizer.java:180)
这段代码在 Lucene 36 上运行良好,为什么会出现异常