Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align DepObjCol indexer behavior with winui (backport #19252) #19265

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 17, 2025

GitHub Issue (If applicable): closes #19253, closes unoplatform/kahua-private#256

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

On Uno, new BehaviorCollection()[2] throws:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

What is the new behavior?

It will return null like on WinUI.

PR Checklist

Please check if your PR fulfills the following requirements:

@jeromelaban jeromelaban merged commit a90c23f into release/stable/5.6 Jan 17, 2025
27 of 71 checks passed
@jeromelaban jeromelaban deleted the mergify/bp/release/stable/5.6/pr-19252 branch January 17, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants