diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-09-18 21:10:19 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-09-18 21:10:19 -0400 |
commit | 09f83a28f5e02f516dbc3ec84ce3251c1ee4d790 (patch) | |
tree | 96cd4984e5945b8cf552fb8a9969841d8e20b684 /src/SMAPI | |
parent | f56636d2c8c78d06b150c4f942f2b791228c560b (diff) | |
download | SMAPI-09f83a28f5e02f516dbc3ec84ce3251c1ee4d790.tar.gz SMAPI-09f83a28f5e02f516dbc3ec84ce3251c1ee4d790.tar.bz2 SMAPI-09f83a28f5e02f516dbc3ec84ce3251c1ee4d790.zip |
fix error if mod doesn't have a loaded manifest
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/SCore.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index d05f5bb9..6441e889 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -859,7 +859,7 @@ namespace StardewModdingAPI.Framework string relativePath = PathUtilities.GetRelativePath(this.ModsPath, mod.DirectoryPath); if (mod.IsContentPack) this.Monitor.Log($" {mod.DisplayName} ({relativePath}) [content pack]...", LogLevel.Trace); - else if (mod.Manifest.EntryDll != null) + else if (mod.Manifest?.EntryDll != null) this.Monitor.Log($" {mod.DisplayName} ({relativePath}{Path.DirectorySeparatorChar}{mod.Manifest.EntryDll})...", LogLevel.Trace); // don't use Path.Combine here, since EntryDLL might not be valid else this.Monitor.Log($" {mod.DisplayName} ({relativePath})...", LogLevel.Trace); |