2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00

Fixed crash

This commit is contained in:
Albert Vaca 2015-09-08 14:39:07 -07:00
parent b0a96ace32
commit 803464a7ce

View File

@ -108,6 +108,7 @@ public class NetworkPackage {
public ArrayList<String> getStringList(String key) {
JSONArray jsonArray = mBody.optJSONArray(key);
if (jsonArray == null) return null;
ArrayList<String> list = new ArrayList<>();
int length = jsonArray.length();
for (int i = 0; i < length; i++) {