From f1e1b7167a178e559f199db0109502468fd30169 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 7 Apr 2015 21:35:56 -0700 Subject: [PATCH] MGR: Fix a crash bug if connection to client is lost in Simple View --- clientgui/sg_ProjectPanel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clientgui/sg_ProjectPanel.cpp b/clientgui/sg_ProjectPanel.cpp index d1226488ef..d3ddf4d242 100644 --- a/clientgui/sg_ProjectPanel.cpp +++ b/clientgui/sg_ProjectPanel.cpp @@ -526,6 +526,7 @@ std::string CSimpleProjectPanel::GetProjectIconLoc(char* project_url) { char urlDirectory[256]; CMainDocument* pDoc = wxGetApp().GetDocument(); PROJECT* project = pDoc->state.lookup_project(project_url); + if (!project) return (std::string)""; url_to_project_dir(project->master_url, urlDirectory); return (std::string)urlDirectory + "/stat_icon"; }