-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Null Exception on AddAspNet #1875
Comments
can u share a repro? |
@lucas-zimerman or can you re-run with break on all exception enabled to see what line it occurred on |
looking at the code in question
the only way i can see a null ref is if |
@lucas-zimerman - Once this gets released (or if you want to do a custom build now), please let us know if Simon's change in #1881 solved the issue. I'll leave this open until you can check. Thanks. |
Sure I'll validate it. |
Closing as fixed, thanks for the fix :D |
Package
Sentry.AspNet
.NET Flavor
.NET
.NET Version
4.7
OS
Windows
SDK Version
3.20.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
I was trying to figure out how to support Transactions for a OWIN application but it seems like when adding the
AddAspNet
to the code it throws a nullexception error.The only plausible cause is the HttpContext being null here: https://github.com/getsentry/sentry-dotnet/blob/main/src/Sentry.AspNet/Internal/SystemWebVersionLocator.cs#L20
Expected Result
AddAspNet to not throw a null Exception
Actual Result
There are no line numbers :\
The text was updated successfully, but these errors were encountered: