summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModData/ModDatabase.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-04 14:33:50 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-04 14:33:50 -0500
commit38ca63a8f60adfa17a9a13ba19fdda070a91aebf (patch)
treea8688a0f46943cd9d2e6cd73393a7dad117f0cf5 /src/SMAPI/Framework/ModData/ModDatabase.cs
parentac6127c63e2978a5cf63ff4753991e5ab33db8c3 (diff)
downloadSMAPI-38ca63a8f60adfa17a9a13ba19fdda070a91aebf.tar.gz
SMAPI-38ca63a8f60adfa17a9a13ba19fdda070a91aebf.tar.bz2
SMAPI-38ca63a8f60adfa17a9a13ba19fdda070a91aebf.zip
fix null reference when checking FormerIDs field against 'authour' field
Diffstat (limited to 'src/SMAPI/Framework/ModData/ModDatabase.cs')
-rw-r--r--src/SMAPI/Framework/ModData/ModDatabase.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModData/ModDatabase.cs b/src/SMAPI/Framework/ModData/ModDatabase.cs
index 332c5c48..3fd68440 100644
--- a/src/SMAPI/Framework/ModData/ModDatabase.cs
+++ b/src/SMAPI/Framework/ModData/ModDatabase.cs
@@ -157,7 +157,7 @@ namespace StardewModdingAPI.Framework.ModData
&& (
snapshot.Author == null
|| snapshot.Author.Equals(manifest.Author, StringComparison.InvariantCultureIgnoreCase)
- || (manifest.ExtraFields.ContainsKey("Authour") && snapshot.Author.Equals(manifest.ExtraFields["Authour"].ToString(), StringComparison.InvariantCultureIgnoreCase))
+ || (manifest.ExtraFields != null && manifest.ExtraFields.ContainsKey("Authour") && snapshot.Author.Equals(manifest.ExtraFields["Authour"].ToString(), StringComparison.InvariantCultureIgnoreCase))
)
&& (snapshot.Name == null || snapshot.Name.Equals(manifest.Name, StringComparison.InvariantCultureIgnoreCase));