mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
prevent crash
This commit is contained in:
parent
8b68f656e0
commit
fc6f577a79
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ public class EntityOperation {
|
|||
|
||||
EntityFolder source = db.folder().getFolder(message.folder);
|
||||
EntityFolder target = db.folder().getFolder(jargs.getLong(0));
|
||||
if (source.id.equals(target.id))
|
||||
if (source == null || target == null || source.id.equals(target.id))
|
||||
return;
|
||||
|
||||
EntityLog.log(context, "Move message=" + message.id + ":" + message.subject +
|
||||
|
|
Loading…
Reference in a new issue