Prevent crash

This commit is contained in:
M66B 2023-04-07 19:15:58 +02:00
parent 14fa14ea91
commit 75f25cd434
1 changed files with 2 additions and 1 deletions

View File

@ -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(