fix crash

This commit is contained in:
Phillip Thelen 2024-02-22 15:51:43 +01:00
parent 9892c859c6
commit 7df5294687

View file

@ -366,6 +366,9 @@ open class Task : RealmObject, BaseMainObject, Parcelable, BaseTask {
var startDate = this.startDate?.toInstant()?.atZone(ZoneId.systemDefault()) ?: return null
val frequency = this.frequency ?: return null
val everyX = this.everyX ?: 1
if (everyX == 0) {
return null
}
val repeatDays = this.repeat
startDate = startDate.withHour(reminderTime.hour).withMinute(reminderTime.minute)