1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Fixed importing rules

This commit is contained in:
M66B 2023-04-11 22:01:06 +02:00
parent 9d716427ba
commit 4d43d05587

View file

@ -1485,7 +1485,8 @@ public class EntityRule {
if (json.has("uuid")) if (json.has("uuid"))
rule.uuid = json.getString("uuid"); rule.uuid = json.getString("uuid");
rule.name = json.getString("name"); rule.name = json.getString("name");
rule.group = json.getString("group"); if (json.has("group") && !json.isNull("group"))
rule.group = json.getString("group");
rule.order = json.getInt("order"); rule.order = json.getInt("order");
rule.enabled = json.getBoolean("enabled"); rule.enabled = json.getBoolean("enabled");
rule.daily = json.optBoolean("daily"); rule.daily = json.optBoolean("daily");