From dd56fab4bdf533da453aaff4e32907f2cf5fe74b Mon Sep 17 00:00:00 2001 From: Scott Ludwig Date: Mon, 25 Jan 2016 12:40:12 -0800 Subject: [PATCH] Fix reported crash when downloading mission pack index Clicking on the "Downloading X of Y" message, visible while the index is downloading, caused this crash. Bug and fix reported by Nathan Fulton. --- game/dlmissionpack.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game/dlmissionpack.cpp b/game/dlmissionpack.cpp index 879a815..6c0fc64 100644 --- a/game/dlmissionpack.cpp +++ b/game/dlmissionpack.cpp @@ -574,6 +574,10 @@ void DownloadMissionPackForm::HideShow() { // Get the pack info for this pack IndexEntry *entry = (IndexEntry *)plstc->GetSelectedItemData(); + if (entry == NULL) { + return; + } + char *psz = NULL; switch (gppackm->IsInstalled(&entry->packid)) { case 0: