From 559ceff375ac06dd18853ba0a5a4c7bd2a27b32c Mon Sep 17 00:00:00 2001 From: Miguel Huertas Date: Fri, 23 Oct 2020 16:38:48 -0600 Subject: [PATCH] Update RequestService.cs --- Transbank/Common/RequestService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transbank/Common/RequestService.cs b/Transbank/Common/RequestService.cs index 91966d7..107a28a 100644 --- a/Transbank/Common/RequestService.cs +++ b/Transbank/Common/RequestService.cs @@ -38,7 +38,7 @@ public static string Perform(BaseRequest request, Options options) where T : { var jsonObject = (JObject)JsonConvert.DeserializeObject(jsonResponse); throw (T)Activator.CreateInstance(typeof(T), new object[] { - (int)response.StatusCode, $"Error message: {jsonObject.Value("error_message")}" + (int)response.StatusCode, $"Error message: {jsonObject?.Value("error_message")}" }); } return jsonResponse;