Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 66dc262

Browse files
committed
Move inner exception null check outside IL2CPP ppd
1 parent 4342901 commit 66dc262

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Core/Reflection/Extensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ public static Exception GetInnerMostException(this Exception e)
101101
{
102102
while (e != null)
103103
{
104+
if (e.InnerException == null)
105+
break;
104106
#if CPP
105-
if (e.InnerException == null || e.InnerException is System.Runtime.CompilerServices.RuntimeWrappedException)
107+
if (e.InnerException is System.Runtime.CompilerServices.RuntimeWrappedException)
106108
break;
107109
#endif
108110
e = e.InnerException;

0 commit comments

Comments
 (0)