prevent crash

This commit is contained in:
M66B 2020-04-05 12:41:00 +02:00
parent 8b68f656e0
commit fc6f577a79
1 changed files with 1 additions and 1 deletions

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 +