Skip to content

Commit 15d1d76

Browse files
committed
dont expect a context
1 parent 02e622c commit 15d1d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/Sentry.Samples.AspNetCore.Mvc/ExampleEventProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public SentryEvent Process(SentryEvent @event)
1414
{
1515
// Here I can modify the event, while taking dependencies via DI
1616

17-
@event.SetExtra("Response:HasStarted", _httpContext.HttpContext.Response.HasStarted);
17+
@event.SetExtra("Response:HasStarted", _httpContext.HttpContext?.Response.HasStarted);
1818
return @event;
1919
}
2020
}

0 commit comments

Comments
 (0)