Skip to content

Commit 14e9cdc

Browse files
authored
fix(stleary#901): add the jsonparserConfiguration param to avoid a stackoverflow error
1 parent 0d71dcf commit 14e9cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/json/JSONArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ private void addAll(Object array, boolean wrap, int recursionDepth, JSONParserCo
20012001
// JSONArray
20022002
this.myArrayList.addAll(((JSONArray)array).myArrayList);
20032003
} else if (array instanceof Collection) {
2004-
this.addAll((Collection<?>)array, wrap, recursionDepth);
2004+
this.addAll((Collection<?>)array, wrap, recursionDepth, jsonParserConfiguration);
20052005
} else if (array instanceof Iterable) {
20062006
this.addAll((Iterable<?>)array, wrap);
20072007
} else {

0 commit comments

Comments
 (0)