Skip to content

Commit fb846de

Browse files
JusterZhuCopilot
andauthored
Update src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2f7344b commit fb846de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ protected override GeneralUpdateBootstrap StrategyFactory()
282282
private GeneralUpdateBootstrap AddListener<TArgs>(Action<object, TArgs> action)
283283
where TArgs : EventArgs
284284
{
285+
if (action is null) throw new ArgumentNullException(nameof(action));
285286
EventManager.Instance.AddListener(action);
286287
return this;
287288
}

0 commit comments

Comments
 (0)