Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix endpoint index lookups to handle invalid endpoint ids correctly. (p…
…roject-chip#22275) There are some code paths that loop over all endpoint indices (including ones that do not have an endpoint defined yet) and then use the endpoint id to look up endpoint indices. Make sure we don't claim an endpoint index for the "not an endpoint" endpoint id. Also fixes findClusterEndpointIndex to check for the invalid endpoint id before working with it, since that means the endpoint index it's looking at does not correspond to a defined endpoint. Fixes project-chip#22272
- Loading branch information