diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 965292795df1..fead1a641d34 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -3488,7 +3488,7 @@ func (j *Job) Warnings() error { outer := fmt.Errorf("Group %q has warnings: %v", tg.Name, err) mErr.Errors = append(mErr.Errors, outer) } - if tg.Update.AutoPromote { + if tg.Update != nil && tg.Update.AutoPromote { ap += 1 } }