Skip to content
Snippets Groups Projects
Commit 192966e6 authored by Käppler Johannes Maximilian's avatar Käppler Johannes Maximilian
Browse files

Minor updates

parent fadc1ad0
No related branches found
No related tags found
No related merge requests found
......@@ -66,10 +66,12 @@ public class Task {
}
public void end() {
Record r = this.getRecords().get(this.getRecords().size() - 1);
r.end();
this.active = false;
dbCalls.writeRecordForTask(r, this.id);
if (this.getRecords().size() > 0) {
Record r = this.getRecords().get(this.getRecords().size() - 1);
r.end();
this.active = false;
dbCalls.writeRecordForTask(r, this.id);
}
}
public List<Record> getRecords() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment