Merge pull request #11623 from Mailaender/zip-entry-null

Fixed a potential NRE in DownloadPackageLogic.ShowDownloadDialog
This commit is contained in:
Oliver Brakmann
2016-07-10 18:57:07 +02:00
committed by GitHub

View File

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