rmuir opened a new pull request #586:
URL: https://github.com/apache/lucene/pull/586
10% of the time, TestRandomChains will pass `null` to any object parameters
in analyzers' ctors.
We allow NPE from the ctor, so it enforces the analyzers check up front.
It just means we have to run the test in a loop:
```
./gradlew :lucene:analysis.tests:beast -Dtests.dups=100 --tests
TestRandomChains -Dtests.nightly=true
```
and add missing `Objects.requireNonNull()` to the bugs that it finds at
runtime.
Example fail:
```
> java.lang.NullPointerException: Cannot invoke
"org.apache.lucene.analysis.compound.hyphenation.HyphenationTree.hyphenate(char[],
int, int, int, int)" because "this.hyphenator" is null
> at
__randomizedtesting.SeedInfo.seed([29B8EF94FA5640A3:1459C6F5BD445D63]:0)
> at
[email protected]/org.apache.lucene.analysis.compound.HyphenationCompoundWordTokenFilter.decompose(HyphenationCompoundWordTokenFilter.java:143)
> at
[email protected]/org.apache.lucene.analysis.compound.CompoundWordTokenFilterBase.incrementToken(CompoundWordTokenFilterBase.java:115)
```
See issue: https://issues.apache.org/jira/browse/LUCENE-10353
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]