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

NullReferenceException is not producing any helpful information for releases #57488

Closed
Kokujou opened this issue Aug 16, 2021 · 3 comments
Closed
Labels
area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner

Comments

@Kokujou
Copy link

Kokujou commented Aug 16, 2021

This issue is now persistent for a very long time and caused a lot of problems in a project i'm working on.
Everytime a NullReferenceException occurs it never says anything about the parameter name the exception was thrown on.
Dpeending on the quality of the code this can cause really huge issues for testing and reproducing reported errors.

i know when you're debugigng code the debugger tells you what variable it is, but for release this information is not accessible.

i think it would benefit a lot of developers if this exception would generate a better error message, especially since the NullReferenceException is always bound to a parameter.

i didn't see any similar issues filed, so i hope this will get processed

@adamsitnik adamsitnik transferred this issue from dotnet/core Aug 16, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner labels Aug 16, 2021
@ghost
Copy link

ghost commented Aug 16, 2021

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

This issue is now persistent for a very long time and caused a lot of problems in a project i'm working on.
Everytime a NullReferenceException occurs it never says anything about the parameter name the exception was thrown on.
Dpeending on the quality of the code this can cause really huge issues for testing and reproducing reported errors.

i know when you're debugigng code the debugger tells you what variable it is, but for release this information is not accessible.

i think it would benefit a lot of developers if this exception would generate a better error message, especially since the NullReferenceException is always bound to a parameter.

i didn't see any similar issues filed, so i hope this will get processed

Author: Kokujou
Assignees: -
Labels:

area-Diagnostics-coreclr, untriaged

Milestone: -

@EgorBo
Copy link
Member

EgorBo commented Aug 16, 2021

Duplicates #3858

@mangod9
Copy link
Member

mangod9 commented Aug 16, 2021

Closing as dupe of #3858 as mentioned above.

@mangod9 mangod9 closed this as completed Aug 16, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ExceptionHandling-coreclr untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants