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: improve null safety for Window.CurrentSafe #19816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MartinZikmund
Copy link
Member

Added null checks for Window.CurrentSafe across multiple files to prevent null reference exceptions. Utilized the null-conditional (?.) and null-coalescing (??) operators for safer handling of potential null values. Removed obsolete commented-out code related to CoreWindowContentRootSet, enhancing code cleanliness and robustness.

GitHub Issue (If applicable): closes #

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

Added null checks for `Window.CurrentSafe` across multiple files to prevent null reference exceptions. Utilized the null-conditional (`?.`) and null-coalescing (`??`) operators for safer handling of potential null values. Removed obsolete commented-out code related to `CoreWindowContentRootSet`, enhancing code cleanliness and robustness.
@github-actions github-actions bot added the platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform label Apr 2, 2025
@unodevops
Copy link
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-19816/index.html

@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19816/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 159432 has failed on Uno.UI - CI.

@MartinZikmund MartinZikmund self-assigned this Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants