Skip to content

Commit

Permalink
Issue uniVocity#449: avoid ArrayIndexOutOfBoundsException in Abstract…
Browse files Browse the repository at this point in the history
…CharInputReader
  • Loading branch information
Ilya Cassina committed Feb 25, 2021
1 parent 943a542 commit cae31d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public final String getString(char ch, char stop, boolean trim, String nullValue

if (trim) {
i = i - 2;
while (buffer[i] <= ' ' && whitespaceRangeStart < buffer[i]) {
while (i >= 0 && buffer[i] <= ' ' && whitespaceRangeStart < buffer[i]) {
len--;
i--;
}
Expand Down

0 comments on commit cae31d8

Please sign in to comment.