1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

prevent crash

This commit is contained in:
M66B 2020-04-05 12:41:00 +02:00
parent 8b68f656e0
commit fc6f577a79

View file

@ -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 +