fix: InvokeSafe params causing warnings for possible null parameter calls

This commit is contained in:
Syntriax 2025-04-13 21:41:53 +03:00
parent dae72b11c5
commit a9f5974568

View File

@ -4,7 +4,7 @@ namespace Syntriax.Engine.Core;
public static class DelegateHelpers public static class DelegateHelpers
{ {
public static void InvokeSafe(this Delegate @delegate, params object[] args) public static void InvokeSafe(this Delegate @delegate, params object?[] args)
{ {
if (@delegate is null) if (@delegate is null)
return; return;