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