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

Nullability checks for ShellPageRendererTracker #27160

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Jan 15, 2025

Description of Change

This contains all the code fixes made to #27159 but we can't modify the public nullability of this file until .NET 10

These changes were motivated by the following PR #26786

We modified the ViewController property to be a weak reference so we need to account for scenarios where it might become null without us realizing it.

Follow up work here #27162

@Copilot Copilot bot review requested due to automatic review settings January 15, 2025 18:55
@PureWeen PureWeen requested a review from a team as a code owner January 15, 2025 18:55
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs:365

  • The variable 'image' should be checked for null before calling 'LoadImage'.
image.LoadImage(mauiContext, result => { ... })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready To Review
Development

Successfully merging this pull request may close these issues.

1 participant