You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d04e60
Browse filesBrowse the repository at this point in the historyBrowse files
packages/aws/data_stream/config: guard against null API response fields (elastic#18787)
The CEL program calls size() on body.EvaluationResults after checking
has(), but has() returns true when the field is present with a JSON
null value. size(null) has no overload, producing a runtime error that
propagates to the ternary operator as "no such overload".
Add != null guards to all three has()+size() patterns in the program
(EvaluationResults and ConfigRules). Remove dead .orValue([]) on the
map call since the true branch already guarantees a non-empty list.
Update the test input to return null instead of an empty array for one
rule so the fix is exercised by system tests.
0 commit comments