From f080379e8ac82a75be71bf367b4199634fee05cd Mon Sep 17 00:00:00 2001 From: Sinai Date: Fri, 7 May 2021 06:25:49 +1000 Subject: [PATCH] Update ReflectionUtility.cs --- src/Core/Reflection/ReflectionUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Reflection/ReflectionUtility.cs b/src/Core/Reflection/ReflectionUtility.cs index d26631e..1696430 100644 --- a/src/Core/Reflection/ReflectionUtility.cs +++ b/src/Core/Reflection/ReflectionUtility.cs @@ -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)