From a2ebbe83cb491b5f07d5cefb2a87c0e62b04085c Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 12:45:58 +0100 Subject: [PATCH] Make Action property non-nullable in InvokeRecActionCommand Updated the `Action` property in the `InvokeRecActionCommand` class to be non-nullable by initializing it with a default value (`= null!;`). This change ensures better null safety and prevents potential null reference issues. The `= null!;` syntax suppresses compiler warnings while guaranteeing the property will be properly initialized before use. --- .../RecActions/Commands/InvokeRecActionCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs index 944c9a2..418848e 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs @@ -10,7 +10,7 @@ namespace ReC.Application.RecActions.Commands; public record InvokeRecActionCommand : IRequest { - public RecActionDto Action { get; set; } + public RecActionDto Action { get; set; } = null!; } public static class InvokeRecActionCommandExtensions