Prevent crash

This commit is contained in:
M66B 2019-08-16 13:30:04 +02:00
parent 5b82d418cc
commit 15cbc2438b
1 changed files with 1 additions and 1 deletions

View File

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