Skip to content
Closed
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
2 changes: 1 addition & 1 deletion Minio/MinioClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private static void ParseErrorNoContent(ResponseResult response)
#pragma warning disable MA0099 // Use Explicit enum value instead of 0
if (response.StatusCode == 0)
throw new ConnectionException("Connection error:" + response.ErrorMessage, response);
if (response.Exception.GetType() == typeof(TaskCanceledException))
if (response.Exception?.GetType() == typeof(TaskCanceledException))
throw response.Exception;
#pragma warning restore MA0099 // Use Explicit enum value instead of 0
throw new InternalClientException(
Expand Down