From 75f25cd434b5ef2d7b5c372617a9ef6e681a16d1 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 Apr 2023 19:15:58 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 6fb6ec873d..b0ecb8b185 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -4922,7 +4922,8 @@ public class FragmentMessages extends FragmentBase @Override public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { - if ("pro".equals(key) || "banner_hidden".equals(key)) { + if (grpSupport != null && + ("pro".equals(key) || "banner_hidden".equals(key))) { boolean pro = ActivityBilling.isPro(getContext()); long banner_hidden = prefs.getLong("banner_hidden", 0); grpSupport.setVisibility(