Skip to content

Commit 38768e3

Browse files
authored
Merge pull request #11 from pcy190/master
Fix out of bound exception
2 parents 4e6596f + c558138 commit 38768e3

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)