MGR: Fix a possible (but unlikely) crash bug identified by Coverity scan (CID 117629)

This commit is contained in:
Charlie Fenton 2015-10-14 00:53:34 -07:00
parent c86e8f97fb
commit 5271c5969c
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ void CSimpleProjectPanel::UpdateProjectList() {
selData = (ProjectSelectionData*)m_ProjectSelectionCtrl->GetClientData(j);
ctrl_url = selData->project_url;
project = pDoc->state.lookup_project(ctrl_url);
if ( project->project_files_downloaded_time > selData->project_files_downloaded_time ) {
if ( (project != NULL) && (project->project_files_downloaded_time > selData->project_files_downloaded_time) ) {
wxBitmap* projectBM = GetProjectSpecificBitmap(ctrl_url);
selData->project_files_downloaded_time = project->project_files_downloaded_time;
m_ProjectSelectionCtrl->SetItemBitmap(j, *projectBM);