Skip to content

Commit

Permalink
ResultHelper counter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaneusz committed Nov 16, 2023
1 parent 82e31f1 commit ef434cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static <R extends XyzFeature> List<R> readFeaturesFromResult(Result resul
}
List<R> features = new ArrayList<>();
int cnt = 0;
while (resultCursor.hasNext() && cnt < limit) {
while (resultCursor.hasNext() && cnt++ < limit) {
if (!resultCursor.next()) {
throw new RuntimeException("Unexpected invalid result");
}
Expand Down

0 comments on commit ef434cb

Please sign in to comment.