diff --git a/plugin/task_manager/common_api.go b/plugin/task_manager/common_api.go index 6d6bf075..4400cf7b 100644 --- a/plugin/task_manager/common_api.go +++ b/plugin/task_manager/common_api.go @@ -471,7 +471,7 @@ func (h *APIHandler) calcRepeatingStatus(taskItem *task.Task) (*task.Task, *Repe ret.LastRunTime = lastRepeatingChild.StartTimeInMillis if ret.LastRunTime == 0 && lastRunChild != nil { ret.LastRunTime = lastRunChild.StartTimeInMillis - if !lastRunChild.CompletedTime.IsZero(){ + if lastRunChild.CompletedTime != nil && !lastRunChild.CompletedTime.IsZero(){ ret.LastCompleteTime = lastRunChild.CompletedTime.UnixMilli() } }