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;