mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Update Extensions.cs (#2310)
- only catching AssemblyResolutionException - using null propagation instead of null ref
This commit is contained in:
parent
b9c0ee144b
commit
b33e5228a3
@ -262,9 +262,9 @@ public static IEnumerable<FieldDefinition> FindAllPublicFields(this TypeDefiniti
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
typeDefinition = typeDefinition.BaseType.Resolve();
|
typeDefinition = typeDefinition.BaseType?.Resolve();
|
||||||
}
|
}
|
||||||
catch
|
catch (AssemblyResolutionException)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user