KEMBAR78
Fix Crash when ItemsSource is set to null in the SelectionChanged handler by bhavanesh2001 · Pull Request #29887 · dotnet/maui · GitHub
Skip to content

Conversation

bhavanesh2001
Copy link
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Added null checks for ItemsSource in all platform and xplat selection/deselection methods.

This fix is intended as a patch to prevent the crash in SR8.

A follow-up PR will address the root cause.

Issues Fixed

Contributes to #29882

@bhavanesh2001 bhavanesh2001 requested a review from a team as a code owner June 9, 2025 19:49
@dotnet-policy-service
Copy link
Contributor

Hey there @@bhavanesh2001! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 9, 2025
@PureWeen PureWeen added this to the .NET 9 SR8 milestone Jun 9, 2025
@PureWeen PureWeen added the p/0 Work that we can't release without label Jun 9, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing Jun 9, 2025
@PureWeen
Copy link
Member

PureWeen commented Jun 9, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@github-project-automation github-project-automation bot moved this from Ready To Review to Changes Requested in MAUI SDK Ongoing Jun 10, 2025
@bhavanesh2001 bhavanesh2001 requested a review from PureWeen June 10, 2025 02:11
@bhavanesh2001 bhavanesh2001 requested a review from PureWeen June 10, 2025 13:18
@PureWeen
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@github-project-automation github-project-automation bot moved this from Changes Requested to Approved in MAUI SDK Ongoing Jun 10, 2025
@PureWeen PureWeen merged commit ab9cd46 into dotnet:main Jun 10, 2025
129 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing Jun 10, 2025
rmarinho pushed a commit that referenced this pull request Jun 24, 2025
…dler (#29887)

* Add null check for ItemsSource before Selection/ Deselection

* Add an UI test

* Update null check

* more null checks

* Update namespace

* update namespace again
@github-actions github-actions bot locked and limited conversation to collaborators Jul 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution p/0 Work that we can't release without

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants