We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37f9b21 commit 24d1035Copy full SHA for 24d1035
java-client/src/main/java/co/elastic/clients/transport/rest_client/MultiBufferEntity.java
@@ -60,12 +60,13 @@ public void close() throws IOException {
60
}
61
62
private void init() {
63
- this.iterator = buffers.iterator();
64
- if (this.iterator.hasNext()) {
65
- this.currentBuffer = this.iterator.next().duplicate();
+ Iterator<ByteBuffer> localIterator = this.buffers.iterator();
+ if (localIterator.hasNext()) {
+ this.currentBuffer = localIterator.next().duplicate();
66
} else {
67
this.currentBuffer = null;
68
69
+ this.iterator = localIterator;
70
71
72
@Override
0 commit comments