summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Controllers/ModsApiController.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-10-02 19:55:37 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-10-02 19:55:37 -0400
commit307c2919f4660d7774bd5f9cedb9c69940ba1069 (patch)
treeb3e2e67a29fabe99b3c5c98ab8252aefe0ef0e94 /src/SMAPI.Web/Controllers/ModsApiController.cs
parent2e9a26c4395d79485f819145882fe51d69b65f4b (diff)
downloadSMAPI-307c2919f4660d7774bd5f9cedb9c69940ba1069.tar.gz
SMAPI-307c2919f4660d7774bd5f9cedb9c69940ba1069.tar.bz2
SMAPI-307c2919f4660d7774bd5f9cedb9c69940ba1069.zip
fix error performing update check for mods with no wiki entry
Diffstat (limited to 'src/SMAPI.Web/Controllers/ModsApiController.cs')
-rw-r--r--src/SMAPI.Web/Controllers/ModsApiController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Controllers/ModsApiController.cs b/src/SMAPI.Web/Controllers/ModsApiController.cs
index 3ca07a08..dcddaf10 100644
--- a/src/SMAPI.Web/Controllers/ModsApiController.cs
+++ b/src/SMAPI.Web/Controllers/ModsApiController.cs
@@ -291,7 +291,7 @@ namespace StardewModdingAPI.Web.Controllers
.ToList();
// apply overrides from wiki
- if (entry.Overrides?.ChangeUpdateKeys?.HasChanges == true)
+ if (entry?.Overrides?.ChangeUpdateKeys?.HasChanges == true)
{
List<string> newKeys = updateKeys.Select(p => p.ToString()).ToList();
entry.Overrides.ChangeUpdateKeys.Apply(newKeys);