You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that there is an NPE in the waitForDocs method of ElasticsearchIntegrationTest. I discovered when trying to write a test case using this class which calls the method: waitForDocs(final long numDocs) which propagates down a null value to this portion of the code.
As noted in the documentation indexer is Nullable, but if null here, we see a null pointer. I think in the null case we could default to 0 and the code would work as documented, but wanted to get some feedback before making the change.
The text was updated successfully, but these errors were encountered:
Seems that there is an NPE in the
waitForDocs
method of ElasticsearchIntegrationTest. I discovered when trying to write a test case using this class which calls the method:waitForDocs(final long numDocs)
which propagates down a null value to this portion of the code.Problem seems to surface on this line:
https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/test/ElasticsearchIntegrationTest.java#L999
As noted in the documentation indexer is Nullable, but if null here, we see a null pointer. I think in the null case we could default to 0 and the code would work as documented, but wanted to get some feedback before making the change.
The text was updated successfully, but these errors were encountered: