Skip to content

Commit

Permalink
miss one null payment detail handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cofaulco committed Jan 25, 2021
1 parent 777c6b3 commit 3c89dca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3c89dca

Please sign in to comment.