From bba912667f633700dd1d193ba86125846d7d6440 Mon Sep 17 00:00:00 2001 From: Sinai Date: Sun, 21 Mar 2021 16:18:47 +1100 Subject: [PATCH] fix ToString exception --- .../Inspectors/Reflection/InteractiveValue/InteractiveValue.cs | 2 ++ src/ExplorerCore.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs index 7b1d0b1..86c93a1 100644 --- a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs +++ b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs @@ -255,6 +255,8 @@ namespace UnityExplorer.Core.Inspectors.Reflection else toString = (string)m_toStringMethod.Invoke(Value, new object[0]); + toString = toString ?? ""; + string typeName = valueType.FullName; if (typeName.StartsWith("Il2CppSystem.")) typeName = typeName.Substring(6, typeName.Length - 6); diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index c8b1638..6dac742 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -17,7 +17,7 @@ namespace UnityExplorer public class ExplorerCore { public const string NAME = "UnityExplorer"; - public const string VERSION = "3.2.4"; + public const string VERSION = "3.2.5"; public const string AUTHOR = "Sinai"; public const string GUID = "com.sinai.unityexplorer";