diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index 6fe0c996c7..1d7dcabc8a 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -394,7 +394,7 @@ public class EntityRule { } private boolean onActionCopy(Context context, EntityMessage message, JSONObject jargs) throws JSONException { - long target = jargs.getLong("target"); + long target = jargs.optLong("target", -1); DB db = DB.getInstance(context); EntityFolder folder = db.folder().getFolder(target);