mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Fixed crash
This commit is contained in:
@@ -108,6 +108,7 @@ public class NetworkPackage {
|
|||||||
|
|
||||||
public ArrayList<String> getStringList(String key) {
|
public ArrayList<String> getStringList(String key) {
|
||||||
JSONArray jsonArray = mBody.optJSONArray(key);
|
JSONArray jsonArray = mBody.optJSONArray(key);
|
||||||
|
if (jsonArray == null) return null;
|
||||||
ArrayList<String> list = new ArrayList<>();
|
ArrayList<String> list = new ArrayList<>();
|
||||||
int length = jsonArray.length();
|
int length = jsonArray.length();
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
|
Reference in New Issue
Block a user