summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-11 19:16:46 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-11 19:16:46 -0500
commitbffc7f28e9abcdb2a3e5e8ee5353f4c2f7e111a0 (patch)
tree55bfb230ae2ec18f8d141637c884ee4cf7542d00 /src/SMAPI.Web
parent609ceedaba6cd42e7025f1a15ebfeb26c69bab80 (diff)
downloadSMAPI-bffc7f28e9abcdb2a3e5e8ee5353f4c2f7e111a0.tar.gz
SMAPI-bffc7f28e9abcdb2a3e5e8ee5353f4c2f7e111a0.tar.bz2
SMAPI-bffc7f28e9abcdb2a3e5e8ee5353f4c2f7e111a0.zip
fix update-check error for Chucklefish pages with no version
Diffstat (limited to 'src/SMAPI.Web')
-rw-r--r--src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs b/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs
index 939c32c6..cdb281e2 100644
--- a/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs
+++ b/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs
@@ -59,7 +59,7 @@ namespace StardewModdingAPI.Web.Framework.Clients.Chucklefish
string name = doc.DocumentNode.SelectSingleNode("//meta[@name='twitter:title']").Attributes["content"].Value;
if (name.StartsWith("[SMAPI] "))
name = name.Substring("[SMAPI] ".Length);
- string version = doc.DocumentNode.SelectSingleNode("//h1/span").InnerText;
+ string version = doc.DocumentNode.SelectSingleNode("//h1/span")?.InnerText;
// create model
return new ChucklefishMod