fix crash: getEveryX() can be zero

This commit is contained in:
Negue 2015-12-13 19:45:59 +01:00
parent 855ce2024b
commit 0935aa5e31

View file

@ -480,6 +480,10 @@ public class Task extends BaseModel {
}
if (this.getFrequency().equals(FREQUENCY_DAILY)) {
if(getEveryX() == 0){
return false;
}
Calendar startDate = new GregorianCalendar();
if (this.getStartDate() != null) {
startDate.setTime(this.getStartDate());