You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bunq.Sdk.dll!Bunq.Sdk.Model.Core.BunqModel.GetUnwrappedItemJsonString(Newtonsoft.Json.Linq.JObject json, string wrapper) Line 62
at E:\Git\sdk_csharp\BunqSdk\Model\Core\BunqModel.cs(62)
Bunq.Sdk.dll!Bunq.Sdk.Model.Core.BunqModel.FromJsonList.AnonymousMethod__0(Newtonsoft.Json.Linq.JToken unwrappedItemObject) Line 113
at E:\Git\sdk_csharp\BunqSdk\Model\Core\BunqModel.cs(113)
[External Code]
Bunq.Sdk.dll!Bunq.Sdk.Model.Core.BunqModel.FromJsonList<Bunq.Sdk.Model.Generated.Endpoint.CustomerStatementExport>(Bunq.Sdk.Http.BunqResponseRaw responseRaw, string wrapper) Line 110
at E:\Git\sdk_csharp\BunqSdk\Model\Core\BunqModel.cs(110)
Bunq.Sdk.dll!Bunq.Sdk.Model.Generated.Endpoint.CustomerStatementExport.List(int? monetaryAccountId, System.Collections.Generic.IDictionary<string, string> urlParams, System.Collections.Generic.IDictionary<string, string> customHeaders) Line 164
at E:\Git\sdk_csharp\BunqSdk\Model\Generated\Endpoint\CustomerStatementExport.cs(164)
as a value for wrapper. The API response contains a list of "CustomerStatement" instead of "CustomerStatementExport" which causes GetUnwrappedItemJsonString to crash. Changing CustomerStatementExport.List to use "CustomerStatement" worked for my particular case.
A redacted response from the API, with just one CustomerStatement:
The text was updated successfully, but these errors were encountered:
robinvanpoppel
changed the title
NullReferenceException on calling CustomerStatementExport.List
NullReferenceException when calling CustomerStatementExport.List
May 26, 2018
Steps to reproduce:
What should happen:
What happens:
sdk_csharp/BunqSdk/Model/Core/BunqModel.cs
Line 62 in de76034
Traceback
SDK version and environment
Extra info:
The code at
sdk_csharp/BunqSdk/Model/Generated/Endpoint/CustomerStatementExport.cs
Line 163 in f48a242
is calling into FromJsonList with
sdk_csharp/BunqSdk/Model/Generated/Endpoint/CustomerStatementExport.cs
Line 40 in f48a242
A redacted response from the API, with just one CustomerStatement:
The text was updated successfully, but these errors were encountered: