-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 NullReferenceException in Invariant.get_IsDialogOverrideEnabled #6785
Fix NullReferenceException in Invariant.get_IsDialogOverrideEnabled #6785
Conversation
…hen .NET Framework Registry key (HKLM\Software\Microsoft\.NETFramework) is not present on the machine dotnet#6772
Is there a reason for splitting the declaration from assignment? |
Can't think of a reason, I guess we should merge the declaration and assignment for both the variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you merge the declaration here and remove the declarations from Line 241-242
Co-authored-by: Dipesh Kumar <[email protected]>
Done. |
/azp run |
No pipelines are associated with this pull request. |
/azp run |
No pipelines are associated with this pull request. |
/azp run |
No pipelines are associated with this pull request. |
Thanks for the contribution @VladimirKhil |
…6785) * Fix NullReferenceException in Invariant.get_IsDialogOverrideEnabled when .NET Framework Registry key (HKLM\Software\Microsoft\.NETFramework) is not present on the machine #6772 * Update src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Invariant.cs Co-authored-by: Dipesh Kumar <[email protected]> * Remove unnecessary declarations Co-authored-by: Dipesh Kumar <[email protected]>
Fixes #6772
Description
Fix NullReferenceException in Invariant.get_IsDialogOverrideEnabled when .NET Framework Registry key (HKLM\Software\Microsoft.NETFramework) is not present on the machine
Customer Impact
Regression
Testing
Risk
Microsoft Reviewers: Open in CodeFlow