From 3c89dcabe8ee60837ac12b0724cdb09b34f892f3 Mon Sep 17 00:00:00 2001 From: Corey Date: Mon, 25 Jan 2021 10:47:33 +0000 Subject: [PATCH] miss one null payment detail handling --- .../RefreshAccountTransfersCommandHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFA.DAS.EmployerFinance/Commands/RefreshAccountTransfers/RefreshAccountTransfersCommandHandler.cs b/src/SFA.DAS.EmployerFinance/Commands/RefreshAccountTransfers/RefreshAccountTransfersCommandHandler.cs index 671c227858..a75997a08e 100644 --- a/src/SFA.DAS.EmployerFinance/Commands/RefreshAccountTransfers/RefreshAccountTransfersCommandHandler.cs +++ b/src/SFA.DAS.EmployerFinance/Commands/RefreshAccountTransfers/RefreshAccountTransfersCommandHandler.cs @@ -107,7 +107,7 @@ protected override async Task HandleCore(RefreshAccountTransfersCommand message) transfer.SenderAccountName = transferSenderAccountNames[transfer.SenderAccountId]; transfer.ReceiverAccountName = transferReceiverAccountName; - if (transfer.Amount != paymentDetails.PaymentTotal) + if (transfer.Amount != (paymentDetails?.PaymentTotal ?? 0)) _logger.Warn("Transfer total does not match transfer payments total"); } catch (Exception ex)