Skip to content

Commit

Permalink
PDFBOX-5651: fix hasNext condition to avoid NoSuchElementEWxception
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1911625 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lehmi committed Aug 13, 2023
1 parent e12e5ff commit 35b4ca0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public boolean hasNext()
{
return currentNumber < currentEnd;
}
return currentRange < start.length || currentNumber < currentEnd;
return currentRange < start.length - 1 || currentNumber < currentEnd;
}

@Override
Expand Down

0 comments on commit 35b4ca0

Please sign in to comment.