MGR: Fix a crash bug if connection to client is lost in Simple View

This commit is contained in:
Charlie Fenton 2015-04-07 21:35:56 -07:00
parent 9962455ae6
commit f1e1b7167a
1 changed files with 1 additions and 0 deletions

View File

@ -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";
}