From e19349dba86cd32f0674afcfe4f1b97ee316bfb5 Mon Sep 17 00:00:00 2001 From: Alejandro Chacon Date: Tue, 18 Oct 2022 13:18:24 -0400 Subject: [PATCH] Initialized client to prevent issue #14 reported by jluzardo1971 System.NullReferenceException: 'Object reference not set to an instance of an object.' --- src/SwiftClient/SwiftClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SwiftClient/SwiftClient.cs b/src/SwiftClient/SwiftClient.cs index 138b0ec..f5cbf96 100644 --- a/src/SwiftClient/SwiftClient.cs +++ b/src/SwiftClient/SwiftClient.cs @@ -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() { }