mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
Prevent crash
This commit is contained in:
parent
fd83b27835
commit
0c975325cf
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue