diff options
-rw-r--r-- | models/actions/run_list.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/actions/run_list.go b/models/actions/run_list.go index bc69c65840..18790db525 100644 --- a/models/actions/run_list.go +++ b/models/actions/run_list.go @@ -45,6 +45,9 @@ func (runs RunList) LoadTriggerUser(ctx context.Context) error { run.TriggerUser = user_model.NewActionsUser() } else { run.TriggerUser = users[run.TriggerUserID] + if run.TriggerUser == nil { + run.TriggerUser = user_model.NewGhostUser() + } } } return nil |