diff --git a/bin/dotnet/Program.cs b/bin/dotnet/Program.cs index b1b804017..1b28f17e6 100644 --- a/bin/dotnet/Program.cs +++ b/bin/dotnet/Program.cs @@ -23,7 +23,7 @@ { var jsonData = File.ReadAllText(json.FullName)["downloads(".Length..^1]; var items = JsonSerializer.Deserialize(jsonData, new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); - foreach (var item in items.Where(a=>a.ZipUrl.ToString().EndsWith(archiveType) && !a.ZipUrl .ToString().Contains("-war"))) + foreach (var item in items.Where(a=>a.ZipUrl != null && a.ZipUrl.ToString().EndsWith(archiveType) && !a.ZipUrl .ToString().Contains("-war"))) { var majorVersion = item.Version.Split(".").First(); var templatePath = Path.Combine(workdir.FullName, product, "templates", majorVersion);