Prevent crash

This commit is contained in:
M66B 2022-06-13 14:30:12 +02:00
parent fd83b27835
commit 0c975325cf
1 changed files with 3 additions and 1 deletions

View File

@ -6636,8 +6636,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
Log.i("Navigating to id=" + closeId);
Context context = getContext();
if (context == null)
if (context == null) {
finish();
return;
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean reversed = prefs.getBoolean("reversed", false);