summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-08-08 22:27:07 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-08-08 22:27:07 -0400
commitd813c4e2c8522584beaf1432725b4cdd2cc251b5 (patch)
treedd7ce212182e773d826c955d3e1deaa7cbcdec40 /src/SMAPI.Web/ViewModels
parente376386d250780c50f17c40f82419128b4e7beab (diff)
downloadSMAPI-d813c4e2c8522584beaf1432725b4cdd2cc251b5.tar.gz
SMAPI-d813c4e2c8522584beaf1432725b4cdd2cc251b5.tar.bz2
SMAPI-d813c4e2c8522584beaf1432725b4cdd2cc251b5.zip
fix log parsing for invalid content packs (#860)
Diffstat (limited to 'src/SMAPI.Web/ViewModels')
-rw-r--r--src/SMAPI.Web/ViewModels/LogParserModel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/ViewModels/LogParserModel.cs b/src/SMAPI.Web/ViewModels/LogParserModel.cs
index c39a9b0a..34d0b4df 100644
--- a/src/SMAPI.Web/ViewModels/LogParserModel.cs
+++ b/src/SMAPI.Web/ViewModels/LogParserModel.cs
@@ -107,7 +107,7 @@ namespace StardewModdingAPI.Web.ViewModels
// group by mod
return mods
.Where(mod => mod.IsContentPack)
- .GroupBy(mod => mod.ContentPackFor!)
+ .GroupBy(mod => mod.ContentPackFor ?? "")
.ToDictionary(group => group.Key, group => group.ToArray());
}