Skip to content

Resolved CS8662 nullability error in merge main to net 10 PR -29753 #29884

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

Merged

Conversation

anandhan-rajagopal
Copy link
Contributor

@anandhan-rajagopal anandhan-rajagopal commented Jun 9, 2025

Description

This PR resolves a build failure in the PR #29753 by Rui Marinho, which caused tests cancellation in CI for iOS and MacCatalyst platforms.
Azure DevOps Build: #143644

Actual Cause

The failure stemmed from a CS8662 compiler error in ShellPageRendererTracker.cs:

error CS8662: Dereference of a possibly null reference.
This was likely caused by conflicting changes introduced through the merge of the following two commits:

[NET10] Enable Nullability on ShellPageRendererTracker

[Android/ iOS] Fix Flyout icon is displayed when flyout is disabled

These commits affected the same file but introduced logic that led to dereferencing a potentially null object.

Solution

This PR includes a null check or adjustment in ShellPageRendererTracker.cs to ensure the reference is validated before use, resolving the build error on iOS and MacCatalyst.

@anandhan-rajagopal anandhan-rajagopal requested a review from a team as a code owner June 9, 2025 15:02
@anandhan-rajagopal anandhan-rajagopal requested review from PureWeen and tj-devel709 and removed request for a team June 9, 2025 15:02
@dotnet-policy-service dotnet-policy-service bot added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Jun 9, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@rmarinho rmarinho merged commit d3b3397 into dotnet:merge-main-ne10 Jun 11, 2025
4 checks passed
@anandhan-rajagopal anandhan-rajagopal added the area-testing Unit tests, device tests label Jun 11, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants