summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}