Update ReflectionUtility.cs

This commit is contained in:
Sinai 2021-05-07 06:25:49 +10:00
parent 2977fd4df5
commit f080379e8a

View File

@ -98,7 +98,7 @@ namespace UnityExplorer
// Getting the actual type of an object
internal virtual Type Internal_GetActualType(object obj)
=> obj.GetType();
=> obj?.GetType();
// Force-casting an object to a type
internal virtual object Internal_TryCast(object obj, Type castTo)