Skip to content

Fix NullReferenceException in Invariant.get_IsDialogOverrideEnabled - #6785

Merged
dipeshmsft merged 3 commits into
dotnet:mainfrom
VladimirKhil:feature/6772-fix-nre-invariant-get_IsDialogOverrideEnabled
Oct 26, 2022
Merged

dipeshmsft merged 3 commits into
dotnet:mainfrom
VladimirKhil:feature/6772-fix-nre-invariant-get_IsDialogOverrideEnabled

Conversation

@VladimirKhil

@VladimirKhil VladimirKhil commented Jul 12, 2022 •

Copy link
Copy Markdown
Contributor

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

…hen .NET Framework Registry key (HKLM\Software\Microsoft\.NETFramework) is not present on the machine

dotnet#6772
@VladimirKhil
VladimirKhil requested a review from a team as a code owner July 12, 2022 19:30
@ghost ghost assigned VladimirKhil Jul 12, 2022
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jul 12, 2022
@ghost
ghost requested review from SamBent, dipeshmsft and singhashish-wpf July 12, 2022 19:31
@ghost ghost added the Community Contribution A label for all community Contributions label Jul 12, 2022
@miloush

miloush commented Jul 28, 2022

Copy link
Copy Markdown
Contributor

Is there a reason for splitting the declaration from assignment?

@dipeshmsft dipeshmsft self-assigned this Aug 30, 2022
@dipeshmsft

Copy link
Copy Markdown
Member

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.

@dipeshmsft dipeshmsft 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.

Can you merge the declaration here and remove the declarations from Line 241-242

@ghost ghost added the 📭 waiting-author-feedback To request more information from author. label Aug 31, 2022
@ghost ghost removed the 📭 waiting-author-feedback To request more information from author. label Sep 3, 2022
@VladimirKhil

Copy link
Copy Markdown
Contributor Author

Can you merge the declaration here and remove the declarations from Line 241-242

Done.

@dipeshmsft

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@pchaurasia14

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@pchaurasia14

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@dipeshmsft

Copy link
Copy Markdown
Member

Thanks for the contribution @VladimirKhil

singhashish-wpf pushed a commit that referenced this pull request Nov 1, 2022
…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]>
@ghost ghost locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MS.Internal.Invariant.get_IsDialogOverrideEnabled() can throw NullReferenceException

4 participants