structs check TaskGroup.Update for nil

This commit is contained in:
Lang Martin
2019-05-21 18:43:38 -04:00
parent 9f74b2285f
commit c9a837cbb5

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