Skip to content

Commit 21dad44

Browse files
authored
Merge pull request #68 from pcy190/master
Fix ArrayIndexOutOfBoundsException
2 parents 00955f7 + 6ecff1c commit 21dad44

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected void extractStringTrim(int start, int stop) {
7575
}
7676

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

0 commit comments

Comments
 (0)