Merge pull request #12497 from oyiadom/master

Update BulkProcessor.java
This commit is contained in:
Adrien Grand 2015-08-17 09:43:41 +02:00
commit 7765b0497d
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ public class BulkProcessor implements Closeable {
}
public static Builder builder(Client client, Listener listener) {
if (client == null) {
throw new NullPointerException("The client you specified while building a BulkProcessor is null");
}
return new Builder(client, listener);
}