Commit 5271c596 authored by Charlie Fenton's avatar Charlie Fenton
Browse files

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

parent c86e8f97
...@@ -514,7 +514,7 @@ void CSimpleProjectPanel::UpdateProjectList() { ...@@ -514,7 +514,7 @@ void CSimpleProjectPanel::UpdateProjectList() {
selData = (ProjectSelectionData*)m_ProjectSelectionCtrl->GetClientData(j); selData = (ProjectSelectionData*)m_ProjectSelectionCtrl->GetClientData(j);
ctrl_url = selData->project_url; ctrl_url = selData->project_url;
project = pDoc->state.lookup_project(ctrl_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); wxBitmap* projectBM = GetProjectSpecificBitmap(ctrl_url);
selData->project_files_downloaded_time = project->project_files_downloaded_time; selData->project_files_downloaded_time = project->project_files_downloaded_time;
m_ProjectSelectionCtrl->SetItemBitmap(j, *projectBM); m_ProjectSelectionCtrl->SetItemBitmap(j, *projectBM);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment