[MM-62537] Fix: Integration action nil ptr dereference (#29986)

* guard against nil dereference; lock down with tests

* fix test name
Этот коммит содержится в:
Christopher Poile
2025-01-28 13:46:12 -05:00
коммит произвёл GitHub
родитель 95fe972d83
Коммит 87ea6d8b1c
2 изменённых файлов: 31 добавлений и 1 удалений

Просмотреть файл

@@ -466,7 +466,7 @@ func isDefaultInOptions(defaultValue string, options []*PostActionOptions) bool
}
for _, option := range options {
if defaultValue == option.Value {
if option != nil && defaultValue == option.Value {
return true
}
}