Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed NullPointerException on bulk request
Java's `ArrayList.toArray()` returns provided array when collection is empty. Here is created a one-element array which contains null element. Thus, returned `BulkResponse` may contains a null element as `BulkItemResponse`. How to achieve: 1. Sent a request to `/_bulk?filter_path=took,errors` 2. call inside `BulkProcessor.Listener` a `BulkResponse.hasFailures()`
- Loading branch information