From 66dc262a688f2eba2b6a3b59418270155607b1ec Mon Sep 17 00:00:00 2001 From: Sinai Date: Fri, 11 Jun 2021 18:12:14 +1000 Subject: [PATCH] Move inner exception null check outside IL2CPP ppd --- src/Core/Reflection/Extensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Core/Reflection/Extensions.cs b/src/Core/Reflection/Extensions.cs index daaea45..26b8f39 100644 --- a/src/Core/Reflection/Extensions.cs +++ b/src/Core/Reflection/Extensions.cs @@ -101,8 +101,10 @@ namespace UnityExplorer { while (e != null) { + if (e.InnerException == null) + break; #if CPP - if (e.InnerException == null || e.InnerException is System.Runtime.CompilerServices.RuntimeWrappedException) + if (e.InnerException is System.Runtime.CompilerServices.RuntimeWrappedException) break; #endif e = e.InnerException;