Skip to content

Commit

Permalink
ResultHelper counter fix
Browse files Browse the repository at this point in the history
ResultHelper counter fix
  • Loading branch information
hirenkp2000 authored Nov 16, 2023
2 parents 82e31f1 + ef434cb commit 8cbf9f5
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 8cbf9f5

Please sign in to comment.