Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Fix NRE for a11y semantic heading #1728

Merged

Conversation

rachelkang
Copy link
Collaborator

Description of Bug

Null views were getting passed into the semantic heading, causing an NRE to get thrown and crashing.
Added a null check to account for this

Behavioral Changes

App will no longer crash if one attempts to set a semantic heading on a null view

PR Checklist

  • Has a linked Issue, and the Issue has been approved
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

@rachelkang rachelkang added the a11y Issue/PR has to do with accessibility label Nov 19, 2021
@VladislavAntonyuk
Copy link
Contributor

hello @rachelkang , does the NRE happen only on UWP?

@rachelkang
Copy link
Collaborator Author

hello @rachelkang , does the NRE happen only on UWP?

@VladislavAntonyuk yep, this is only an issue on UWP!

@TheCodeTraveler
Copy link
Contributor

Thanks @rachelkang!

And thanks @pictos and @VladislavAntonyuk for the quick review!!!

@TheCodeTraveler TheCodeTraveler merged commit 08d64b7 into xamarin:main Nov 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a11y Issue/PR has to do with accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants