From a38f11580e4af2c63cea6ecac15c6fc14c04e995 Mon Sep 17 00:00:00 2001 From: stom79 Date: Tue, 4 Sep 2018 07:35:35 +0200 Subject: [PATCH] Fix crashes when remote accounts are null --- .../main/java/fr/gouv/etalab/mastodon/helper/CrossActions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/helper/CrossActions.java b/app/src/main/java/fr/gouv/etalab/mastodon/helper/CrossActions.java index ed3402696..fbd5af829 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/helper/CrossActions.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/helper/CrossActions.java @@ -216,6 +216,9 @@ public class CrossActions { @Override protected void onPostExecute(Void result) { List remoteAccounts = response.getAccounts(); + if( response == null){ + return; + } if( remoteAccounts != null && remoteAccounts.size() > 0) { Intent intent = new Intent(context, ShowAccountActivity.class); Bundle b = new Bundle();