We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b006c3 commit 20ac53bCopy full SHA for 20ac53b
1 file changed
GameFrameX.Core/Hotfix/HotfixModule.cs
@@ -387,13 +387,18 @@ private bool AddEvent(Type type)
387
/// <returns>是否添加成功。</returns>
388
private bool AddAgent(Type type)
389
{
390
- type.CheckNotNull(nameof(type));
+ ArgumentNullException.ThrowIfNull(type, nameof(type));
391
if (!type.IsImplWithInterface(typeof(IComponentAgent)))
392
393
return false;
394
}
395
396
var fullName = type.FullName;
397
+ if (fullName == null)
398
+ {
399
+ return false;
400
+ }
401
+
402
if (fullName == "GameFrameX.Launcher.Logic.Server.ServerComp")
403
404
0 commit comments