From c72c4469f5c6dd1b3a8a252911630f2b32e58c9f Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 30 Nov 2020 22:24:53 +0900 Subject: [PATCH] Handle null InboxThreadModel. Fixes https://github.com/austinhuang0131/barinsta/issues/329 --- .../fragments/directmessages/DirectMessageSettingsFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageSettingsFragment.java b/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageSettingsFragment.java index 109d1591..b6605ddc 100644 --- a/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageSettingsFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageSettingsFragment.java @@ -66,6 +66,7 @@ public class DirectMessageSettingsFragment extends Fragment implements SwipeRefr @Override public void onResult(final InboxThreadModel threadModel) { + if (threadModel == null) return; final List adminList = Arrays.asList(threadModel.getAdmins()); final String userIdFromCookie = CookieUtils.getUserIdFromCookie(cookie); if (userIdFromCookie == null) return;