Skip to content

Commit c558138

Browse files
authored
Fix out of bound exception
1 parent 4e6596f commit c558138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-smart/src/main/java/net/minidev/json/parser/JSONParserByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected void extractString(int beginIndex, int endIndex) {
7676
}
7777

7878
protected int indexOf(char c, int pos) {
79-
for (int i = pos; pos < len; i++)
79+
for (int i = pos; i < len; i++)
8080
if (in[i] == (byte) c)
8181
return i;
8282
return -1;

0 commit comments

Comments
 (0)