diff --git a/src/org/kde/kdeconnect/NetworkPackage.java b/src/org/kde/kdeconnect/NetworkPackage.java index 42f06869..b27a1385 100644 --- a/src/org/kde/kdeconnect/NetworkPackage.java +++ b/src/org/kde/kdeconnect/NetworkPackage.java @@ -108,6 +108,7 @@ public class NetworkPackage { public ArrayList getStringList(String key) { JSONArray jsonArray = mBody.optJSONArray(key); + if (jsonArray == null) return null; ArrayList list = new ArrayList<>(); int length = jsonArray.length(); for (int i = 0; i < length; i++) {