Fix possible NPE with game version primay key strings

This commit is contained in:
Timothy Baldridge 2020-10-11 10:46:46 -06:00
parent 59a0803a05
commit d54f1e5a3f

View File

@ -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)
{