Skip to content

Replace null comparisons on non-nullable types that now cause compilation errors, due to the .NET SDK update. - #3649

Merged
ryalanms merged 3 commits into
darc-release/5.0-2e04a9b7-e856-4cd2-83c5-e4456bbd30d0from
nonnullablechecks
Oct 14, 2020
Merged

ryalanms merged 3 commits into
darc-release/5.0-2e04a9b7-e856-4cd2-83c5-e4456bbd30d0from
nonnullablechecks

Conversation

@ryalanms

@ryalanms ryalanms commented Oct 14, 2020 •

Copy link
Copy Markdown
Member

Replace null comparisons on non-nullable types that now cause compilation errors, due to the .NET SDK update. This is preventing WPF from updating from the RC1 version of the .NET SDK to RC2.

These redundant null checks against IntPtr and DateTime are now errors. This primarily replaces null comparisons on IntPtr and DateTime, but there are a few others. Where possible, checks were replaced with an alternative (e.g., IntPtr.Zero).

/cc @SamBent @dotnet/wpf-developers

@ryalanms
ryalanms requested a review from a team as a code owner October 14, 2020 20:40
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Oct 14, 2020
@ghost
ghost requested review from SamBent and fabiant3 October 14, 2020 20:41
@ryalanms

Copy link
Copy Markdown
Member Author

This fixes: #3635

/cc @mmitche

@mmitche mmitche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks all reasonable to me.

@ryalanms

Copy link
Copy Markdown
Member Author

Thanks, @mmitche. I need @SamBent's okay, then I'll merge it.

@ryalanms

Copy link
Copy Markdown
Member Author

Thanks, @SamBent, for reviewing. I believe everything should be resolved now.

@ryalanms
ryalanms merged commit ad60319 into darc-release/5.0-2e04a9b7-e856-4cd2-83c5-e4456bbd30d0 Oct 14, 2020
dotnet-maestro Bot added a commit that referenced this pull request Oct 14, 2020
[release/5.0] Update dependencies from dotnet/arcade


 - Replace null comparisons on non-nullable types that now cause compilation errors, due to the .NET SDK update.

 - PR feedback

 - PR feedback

 - Merge pull request #3649 from dotnet/nonnullablechecks

Replace null comparisons on non-nullable types that now cause compilation errors, due to the .NET SDK update.
@mmitche
mmitche deleted the nonnullablechecks branch December 30, 2020 17:04
@ghost ghost locked as resolved and limited conversation to collaborators Apr 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants