Skip to content

Commit e19349d

Browse files
committed
Initialized client to prevent issue cristipufu#14 reported by jluzardo1971 System.NullReferenceException: 'Object reference not set to an instance of an object.'
1 parent c611158 commit e19349d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SwiftClient/SwiftClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public partial class Client : ISwiftClient, IDisposable
1212
public SwiftRetryManager RetryManager;
1313

1414
protected ISwiftLogger _logger;
15-
protected HttpClient _client;
15+
protected HttpClient _client = new HttpClient();
1616
protected bool _customClient;
1717

1818
public Client() { }

0 commit comments

Comments
 (0)