We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de89c05 commit e8ec006Copy full SHA for e8ec006
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