From c822438dec87c49c9764682337bab1bca990e992 Mon Sep 17 00:00:00 2001 From: Vlad Kiselev Date: Mon, 29 Nov 2021 19:23:38 +0300 Subject: [PATCH] Fixed removed null-coalescing for payment comment (#1609) --- src/JoinRpg.Services.Impl/PaymentsService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/JoinRpg.Services.Impl/PaymentsService.cs b/src/JoinRpg.Services.Impl/PaymentsService.cs index 77789a4e5..89357917b 100644 --- a/src/JoinRpg.Services.Impl/PaymentsService.cs +++ b/src/JoinRpg.Services.Impl/PaymentsService.cs @@ -155,7 +155,9 @@ private async Task AddPaymentCommentAsync( claim, CurrentUserId, Now, - request.CommentText, + // Do not remove null-coalescing here! + // Payment comment is not necessary, but it must not be null to create comment. + request.CommentText ?? "", true, null); comment.Finance = new FinanceOperation