mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
754d28ea13
commit
1a02eac88d
|
@ -210,9 +210,11 @@ public class FragmentMessages extends FragmentEx {
|
|||
db.beginTransaction();
|
||||
|
||||
List<EntityFolder> folders = new ArrayList<>();
|
||||
if (fid < 0)
|
||||
folders.addAll(db.folder().getFoldersSynchronizingUnified());
|
||||
else {
|
||||
if (fid < 0) {
|
||||
List<EntityFolder> unified = db.folder().getFoldersSynchronizingUnified();
|
||||
if (unified != null)
|
||||
folders.addAll(unified);
|
||||
} else {
|
||||
EntityFolder folder = db.folder().getFolder(fid);
|
||||
if (folder != null)
|
||||
folders.add(folder);
|
||||
|
|
Loading…
Reference in New Issue