diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-04 14:33:50 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-04 14:33:50 -0500 |
commit | 38ca63a8f60adfa17a9a13ba19fdda070a91aebf (patch) | |
tree | a8688a0f46943cd9d2e6cd73393a7dad117f0cf5 /src/SMAPI/Framework/ModData/ModDatabase.cs | |
parent | ac6127c63e2978a5cf63ff4753991e5ab33db8c3 (diff) | |
download | SMAPI-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.cs | 2 |
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)); |