From b860493cc814c2e539d20b2957464b6373c8ca5f Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Mon, 12 Jul 2021 21:25:59 +0900 Subject: [PATCH] Add null check. Fixes austinhuang0131/barinsta#1628 --- .../instagrabber/fragments/settings/MorePreferencesFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java b/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java index 32533906..40f648a3 100644 --- a/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java @@ -448,6 +448,7 @@ public class MorePreferencesFragment extends BasePreferencesFragment { Log.e(TAG, "onBindViewHolder: ", throwable); return; } + if (account == null) return; binding.getRoot().post(() -> { binding.fullName.setText(account.getFullName()); binding.username.setText("@" + account.getUsername());