Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed access to possible null object RequestMessage
  • Loading branch information
adegwerth committed Dec 29, 2022
commit 496c5afe8e5ff47ef2a518b3ff41d56c63e5177c
2 changes: 1 addition & 1 deletion src/RestSharp/Response/RestResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async Task<RestResponse> GetDefaultResponse() {
ContentType = httpResponse.Content.Headers.ContentType?.MediaType,
ResponseStatus = calculateResponseStatus(httpResponse),
ErrorException = httpResponse.MaybeException(),
ResponseUri = httpResponse.RequestMessage!.RequestUri,
ResponseUri = httpResponse.RequestMessage?.RequestUri,
Server = httpResponse.Headers.Server.ToString(),
StatusCode = httpResponse.StatusCode,
StatusDescription = httpResponse.ReasonPhrase,
Expand Down