We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de89c05 + e8ec006 commit b3a0b52Copy full SHA for b3a0b52
1 file changed
intercom-java/src/main/java/io/intercom/api/TypedDataCollectionIterator.java
@@ -18,6 +18,11 @@ public boolean hasNext() {
18
if (rollingCollection.hasNextPage()) {
19
rollingCollection = rollingCollection.nextPage();
20
pos = 0;
21
+
22
+ if (rollingCollection.getPage().size() == 0) {
23
+ // if new page is empty
24
+ return false;
25
+ }
26
return true;
27
} else {
28
return false;
0 commit comments