summaryrefslogtreecommitdiff
path: root/src/SMAPI.Internal
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-05 11:56:10 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-05 11:56:10 -0400
commit80d3dd1f786f7e5846f9adb7f7a4d82e5b9b92fd (patch)
treeecc708a23eff963ef0100e764e7238c883a8ff16 /src/SMAPI.Internal
parent2e442bf2ee9f7d73c935dfed95c996581a17e06f (diff)
parentb6e058c322f3b904a047ba09cb1701a1bb812e47 (diff)
downloadSMAPI-80d3dd1f786f7e5846f9adb7f7a4d82e5b9b92fd.tar.gz
SMAPI-80d3dd1f786f7e5846f9adb7f7a4d82e5b9b92fd.tar.bz2
SMAPI-80d3dd1f786f7e5846f9adb7f7a4d82e5b9b92fd.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Internal')
-rw-r--r--src/SMAPI.Internal/ExceptionExtensions.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI.Internal/ExceptionExtensions.cs b/src/SMAPI.Internal/ExceptionExtensions.cs
index d7a2252b..5f1ee1fa 100644
--- a/src/SMAPI.Internal/ExceptionExtensions.cs
+++ b/src/SMAPI.Internal/ExceptionExtensions.cs
@@ -19,9 +19,9 @@ namespace StardewModdingAPI.Internal
return $"Failed loading type '{ex.TypeName}': {exception}";
case ReflectionTypeLoadException ex:
- string summary = exception.ToString();
- foreach (Exception childEx in ex.LoaderExceptions)
- summary += $"\n\n{childEx.GetLogSummary()}";
+ string summary = ex.ToString();
+ foreach (Exception childEx in ex.LoaderExceptions ?? new Exception[0])
+ summary += $"\n\n{childEx?.GetLogSummary()}";
return summary;
default: