From 327aef027104ffb033c8c9d32bdd16ea59d2363e Mon Sep 17 00:00:00 2001 From: sk Date: Wed, 15 Nov 2023 18:47:07 +0100 Subject: [PATCH] fix crash for non-github/debug builds --- .../android/fragments/settings/SettingsAboutAppFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsAboutAppFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsAboutAppFragment.java index da89b6f716..509ef7cbd4 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsAboutAppFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsAboutAppFragment.java @@ -81,7 +81,7 @@ public void onCreate(Bundle savedInstanceState){ @Override protected void onHidden(){ super.onHidden(); - GlobalUserPreferences.enablePreReleases=enablePreReleasesItem.checked; + GlobalUserPreferences.enablePreReleases=enablePreReleasesItem!=null && enablePreReleasesItem.checked; GlobalUserPreferences.save(); if(timelineCacheCleared) getActivity().recreate(); }