Skip to content

Commit

Permalink
Initialized client to prevent issue cristipufu#14 reported by jluzard…
Browse files Browse the repository at this point in the history
…o1971 System.NullReferenceException: 'Object reference not set to an instance of an object.'
  • Loading branch information
alejocangrejo committed Oct 18, 2022
1 parent c611158 commit e19349d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SwiftClient/SwiftClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class Client : ISwiftClient, IDisposable
public SwiftRetryManager RetryManager;

protected ISwiftLogger _logger;
protected HttpClient _client;
protected HttpClient _client = new HttpClient();
protected bool _customClient;

public Client() { }
Expand Down

0 comments on commit e19349d

Please sign in to comment.