diff --git a/Assets/Mirror/Editor/Weaver/Extensions.cs b/Assets/Mirror/Editor/Weaver/Extensions.cs index f10fc0e21..666b9f9e7 100644 --- a/Assets/Mirror/Editor/Weaver/Extensions.cs +++ b/Assets/Mirror/Editor/Weaver/Extensions.cs @@ -262,9 +262,9 @@ public static IEnumerable FindAllPublicFields(this TypeDefiniti try { - typeDefinition = typeDefinition.BaseType.Resolve(); + typeDefinition = typeDefinition.BaseType?.Resolve(); } - catch + catch (AssemblyResolutionException) { break; }