diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-05 11:56:10 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-05 11:56:10 -0400 |
commit | 80d3dd1f786f7e5846f9adb7f7a4d82e5b9b92fd (patch) | |
tree | ecc708a23eff963ef0100e764e7238c883a8ff16 /src/SMAPI.Internal | |
parent | 2e442bf2ee9f7d73c935dfed95c996581a17e06f (diff) | |
parent | b6e058c322f3b904a047ba09cb1701a1bb812e47 (diff) | |
download | SMAPI-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.cs | 6 |
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: |