From 803464a7ce984caa0d148cc509c27e01acc711fb Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 8 Sep 2015 14:39:07 -0700 Subject: [PATCH] Fixed crash --- src/org/kde/kdeconnect/NetworkPackage.java | 1 + 1 file changed, 1 insertion(+) 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++) {