From d54f1e5a3f4c27f4b61668db8ef590ec3066b9a5 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sun, 11 Oct 2020 10:46:46 -0600 Subject: [PATCH] Fix possible NPE with game version primay key strings --- Wabbajack.Lib/Downloaders/GameFileSourceDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Lib/Downloaders/GameFileSourceDownloader.cs b/Wabbajack.Lib/Downloaders/GameFileSourceDownloader.cs index 2cdf66d4..28f29ccc 100644 --- a/Wabbajack.Lib/Downloaders/GameFileSourceDownloader.cs +++ b/Wabbajack.Lib/Downloaders/GameFileSourceDownloader.cs @@ -62,7 +62,7 @@ namespace Wabbajack.Lib.Downloaders internal AbsolutePath SourcePath => Game.MetaData().GameLocation().Combine(GameFile); [JsonIgnore] - public override object[] PrimaryKey { get => new object[] {Game, GameVersion, GameFile}; } + public override object[] PrimaryKey { get => new object[] {Game, GameVersion ?? "0.0.0.0", GameFile}; } public override bool IsWhitelisted(ServerWhitelist whitelist) {