summaryrefslogtreecommitdiff
path: root/src/SMAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-26 18:19:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-26 18:19:36 -0400
commit5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588 (patch)
treebf347db5fb7fcd7a300b1920872444e9b3b79773 /src/SMAPI/Program.cs
parentc1f848f09dcc033d05d64eb69cce87c2f89df6a3 (diff)
downloadSMAPI-5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588.tar.gz
SMAPI-5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588.tar.bz2
SMAPI-5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588.zip
fix error in new update-check logic (#457)
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r--src/SMAPI/Program.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 4075dae4..dc9e5308 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -665,7 +665,8 @@ namespace StardewModdingAPI
private bool IsValidUpdate(ISemanticVersion currentVersion, ISemanticVersion newVersion, bool useBetaChannel)
{
return
- newVersion.IsNewerThan(currentVersion)
+ newVersion != null
+ && newVersion.IsNewerThan(currentVersion)
&& (useBetaChannel || newVersion.Build == null);
}