diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-01-11 19:16:46 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-01-11 19:16:46 -0500 |
commit | bffc7f28e9abcdb2a3e5e8ee5353f4c2f7e111a0 (patch) | |
tree | 55bfb230ae2ec18f8d141637c884ee4cf7542d00 /src/SMAPI.Web | |
parent | 609ceedaba6cd42e7025f1a15ebfeb26c69bab80 (diff) | |
download | SMAPI-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.cs | 2 |
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 |