diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-22 01:36:11 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-08-22 01:36:11 -0400 |
commit | d2b6a71aa4cc3383d55350e346e27c1ab2ff134b (patch) | |
tree | 5f1e6001c32258cfdd8a3463660298151ebb037b /src/StardewModdingAPI.Toolkit/Framework/ModScanning | |
parent | 5374b216ca62959db384ed243ac51e6209bc2abc (diff) | |
download | SMAPI-d2b6a71aa4cc3383d55350e346e27c1ab2ff134b.tar.gz SMAPI-d2b6a71aa4cc3383d55350e346e27c1ab2ff134b.tar.bz2 SMAPI-d2b6a71aa4cc3383d55350e346e27c1ab2ff134b.zip |
fix crash when a mod manifest is corrupted
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Framework/ModScanning')
-rw-r--r-- | src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs b/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs index 71dc0cb3..7512d5cb 100644 --- a/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs +++ b/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs @@ -64,7 +64,7 @@ namespace StardewModdingAPI.Toolkit.Framework.ModScanning { try { - if (!this.JsonHelper.ReadJsonFileIfExists<Manifest>(manifestFile.FullName, out manifest)) + if (!this.JsonHelper.ReadJsonFileIfExists<Manifest>(manifestFile.FullName, out manifest) || manifest == null) manifestError = "its manifest is invalid."; } catch (SParseException ex) |