summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-13 17:26:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-13 17:26:36 -0400
commitae01396d9db77789937ff26cfc1cdf90feea68b2 (patch)
treec05ba4108f4472347ed5dc048dbc37c344156e94 /src
parent674ad0d90f8780130a5fcefb3869acfe2315df2a (diff)
downloadSMAPI-ae01396d9db77789937ff26cfc1cdf90feea68b2.tar.gz
SMAPI-ae01396d9db77789937ff26cfc1cdf90feea68b2.tar.bz2
SMAPI-ae01396d9db77789937ff26cfc1cdf90feea68b2.zip
fix crash in unique-ID check when mod has no manifest (#323)
Diffstat (limited to 'src')
-rw-r--r--src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs b/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs
index b75453b7..16c397be 100644
--- a/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs
+++ b/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs
@@ -161,7 +161,7 @@ namespace StardewModdingAPI.Framework.ModLoading
#if !SMAPI_1_x
{
var duplicatesByID = mods
- .GroupBy(mod => mod.Manifest.UniqueID?.Trim(), mod => mod, StringComparer.InvariantCultureIgnoreCase)
+ .GroupBy(mod => mod.Manifest?.UniqueID?.Trim(), mod => mod, StringComparer.InvariantCultureIgnoreCase)
.Where(p => p.Count() > 1);
foreach (var group in duplicatesByID)
{