Fix crash when saving tasks. Fixes #88

This commit is contained in:
Phillip Thelen 2015-12-02 16:45:16 +01:00
parent 17f01dac8e
commit 21ac2866ee

View file

@ -350,6 +350,9 @@ public class Task extends BaseModel {
@Override
public void save() {
if (this.getId() == null || this.getId().length() == 0) {
return;
}
List<TaskTag> tmpTags = tags;
List<ChecklistItem> tmpChecklist = checklist;
@ -382,6 +385,14 @@ public class Task extends BaseModel {
}
}
@Override
public void update() {
if (this.getId() == null || this.getId().length() == 0) {
return;
}
super.update();
}
public int getLightTaskColor()
{
if (this.value < -20)