From 446e639ee5a1025c5fcfb4d5869d63c07c10b166 Mon Sep 17 00:00:00 2001 From: erlend oksvoll Date: Thu, 31 Oct 2024 07:53:33 +0100 Subject: [PATCH] fixed nullref --- src/Altinn.Dan.Plugin.Banking/Services/BankService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Altinn.Dan.Plugin.Banking/Services/BankService.cs b/src/Altinn.Dan.Plugin.Banking/Services/BankService.cs index c706a19..df72a66 100644 --- a/src/Altinn.Dan.Plugin.Banking/Services/BankService.cs +++ b/src/Altinn.Dan.Plugin.Banking/Services/BankService.cs @@ -178,7 +178,7 @@ private async Task GetAccountDetailsV2(Bank_v2.Bank_v2 bankClient,Bank await transactionsTask; _logger.LogInformation("Retrieved transactions: bank {0} account {1} dob {2} transaction count {3} accountinforequestid {4} correlationid {5}", - account.Servicer.Name, account.AccountIdentifier, account.PrimaryOwner.Identifier.Value.Substring(0, 6), transactionsTask.Result.Transactions1.Count, accountInfoRequestId, correlationIdTransactions); + account.Servicer.Name, account.AccountIdentifier, account.PrimaryOwner?.Identifier?.Value?.Substring(0, 6), transactionsTask.Result.Transactions1.Count, accountInfoRequestId, correlationIdTransactions); return MapToInternalV2(details.Account, transactionsTask.Result.Transactions1, availableCredit - availableDebit, bookedCredit - bookedDebit);