From d0bada1ae9342984cef6a93fa0e833e09e469082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 9 Jul 2016 20:10:53 +0200 Subject: [PATCH] Don't crash when ZipFile.GetEntry returns null. --- .../Widgets/Logic/Installation/DownloadPackageLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs index 4ec8588251..dce2131134 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Installation/DownloadPackageLogic.cs @@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic foreach (var kv in download.Extract) { var entry = z.GetEntry(kv.Value); - if (!entry.IsFile) + if (entry == null || !entry.IsFile) continue; onExtractProgress("Extracting " + entry.Name);