mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 21:27:40 +00:00
Fixed crash
This commit is contained in:
parent
b0a96ace32
commit
803464a7ce
@ -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++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user