From ab0f2d88b42ed92073f4780c039a0780cf949185 Mon Sep 17 00:00:00 2001 From: jens Date: Sat, 13 Nov 2021 02:32:39 +0100 Subject: [PATCH] Reoccuring time trigger --- app/src/main/java/com/jens/automation2/TimeFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/jens/automation2/TimeFrame.java b/app/src/main/java/com/jens/automation2/TimeFrame.java index cf265145..a15059e0 100644 --- a/app/src/main/java/com/jens/automation2/TimeFrame.java +++ b/app/src/main/java/com/jens/automation2/TimeFrame.java @@ -76,7 +76,8 @@ public class TimeFrame this.setTriggerTimeStart(Time.valueOf(dateArray[0])); this.setTriggerTimeStop(Time.valueOf(dateArray[1])); this.setDayListFromString(dateArray[2]); - this.setRepetition(Long.parseLong(dateArray[3])); + if(dateArray.length > 3) // may not exist in old config files + this.setRepetition(Long.parseLong(dateArray[3])); } @Override