diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index d2d8b502f4..3051ad57ce 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -351,10 +351,7 @@ public class EntityRule { JSONObject jcondition = new JSONObject(condition); JSONObject jschedule = jcondition.optJSONObject("schedule"); - if (jschedule == null) - throw new IllegalArgumentException("Rule snooze schedule not found"); - - int end = jschedule.optInt("end", 0); + int end = (jschedule == null ? 0 : jschedule.optInt("end", 0)); Calendar cal = getRelativeCalendar(end, message.received); wakeup = cal.getTimeInMillis() + duration * 3600 * 1000L; } else