structs check TaskGroup.Update for nil

This commit is contained in:
Lang Martin 2019-05-21 18:43:38 -04:00
parent 10a3fd61b0
commit d46613ff44

View file

@ -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
}
}