[MM-62537] Fix: Integration action nil ptr dereference (#29986)
* guard against nil dereference; lock down with tests * fix test name
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
95fe972d83
Коммит
87ea6d8b1c
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user