mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
5b82d418cc
commit
15cbc2438b
|
@ -2140,7 +2140,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
updateState(folders);
|
||||
|
||||
boolean outbox = EntityFolder.OUTBOX.equals(folder.type);
|
||||
boolean outbox = (folder != null && EntityFolder.OUTBOX.equals(folder.type));
|
||||
if (FragmentMessages.this.outbox != outbox) {
|
||||
FragmentMessages.this.outbox = outbox;
|
||||
getActivity().invalidateOptionsMenu();
|
||||
|
|
Loading…
Reference in New Issue