fix crash when a mod manifest is corrupted
This commit is contained in:
parent
5374b216ca
commit
d2b6a71aa4
|
@ -5,6 +5,7 @@
|
|||
* Moved most SMAPI files into a `smapi-internal` subfolder.
|
||||
* Moved save backups into a `save-backups` subfolder (instead of `Mods/SaveBackup/backups`). Note that previous backups will be deleted when you update.
|
||||
* Fixed installer duplicating bundled mods if you moved them after the last install.
|
||||
* Fixed crash when a mod manifest is corrupted.
|
||||
* Updated compatibility list.
|
||||
|
||||
* For modders:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue