Small improvement

This commit is contained in:
M66B
2020-07-10 14:35:31 +02:00
parent 911c5662a2
commit 3777412b79

View File

@@ -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);