mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Prevent crash
This commit is contained in:
parent
ba7eedf39c
commit
a1256949e6
1 changed files with 3 additions and 0 deletions
|
@ -3423,6 +3423,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
// Insert into drafts
|
||||
EntityFolder drafts = db.folder().getFolderByType(message.account, EntityFolder.DRAFTS);
|
||||
if (drafts == null)
|
||||
return null;
|
||||
|
||||
message.id = null;
|
||||
message.folder = drafts.id;
|
||||
message.fts = false;
|
||||
|
|
Loading…
Reference in a new issue