Prevent crash

pull/213/head
M66B 2 years ago
parent f422ab5b03
commit 084a2789c8

@ -576,7 +576,8 @@ public class CloudSync {
return responses.get(0); return responses.get(0);
else { else {
JSONArray jall = new JSONArray(); JSONArray jall = new JSONArray();
for (JSONObject response : responses) { for (JSONObject response : responses)
if (response.has("items")) {
JSONArray jitems = response.getJSONArray("items"); JSONArray jitems = response.getJSONArray("items");
for (int i = 0; i < jitems.length(); i++) for (int i = 0; i < jitems.length(); i++)
jall.put(jitems.getJSONObject(i)); jall.put(jitems.getJSONObject(i));

Loading…
Cancel
Save