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