Skip to content

Commit 07fd35e

Browse files
committed
Todo.txt/TaskManager: add missing null check in auto_refresh
1 parent de76f94 commit 07fd35e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Todo.txt/TaskManager.vala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ class GOFI.TXT.TaskManager {
175175
}
176176

177177
private bool auto_refresh () {
178-
if (todo_watcher.being_updated || done_watcher.being_updated) {
178+
if (todo_watcher.being_updated) {
179+
return true;
180+
}
181+
if (done_watcher != null && done_watcher.being_updated) {
179182
return true;
180183
}
181184

0 commit comments

Comments
 (0)