Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Sindo committed Oct 18, 2023
1 parent 78601bc commit e2e8f7e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
{
var innerException = new HttpRequestException(
$"Response status code does not indicate success: {(int)response.StatusCode} ({response.ReasonPhrase})");
ex = new AzureSignalRRuntimeException(request.RequestUri.ToString(), innerException);
ex = new AzureSignalRRuntimeException(request.RequestUri?.ToString(), innerException);
response.Dispose();
}
else
Expand All @@ -61,7 +61,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
else
{
exceptions.Add(ex);
throw new AzureSignalRRuntimeException(request.RequestUri.ToString(), new AggregateException(exceptions));
throw new AzureSignalRRuntimeException(request.RequestUri?.ToString(), new AggregateException(exceptions));
}
}
else
Expand Down

0 comments on commit e2e8f7e

Please sign in to comment.