mirror of https://github.com/BOINC/boinc.git
MGR: Fix a possible (but unlikely) crash bug identified by Coverity scan (CID 117629)
This commit is contained in:
parent
c86e8f97fb
commit
5271c5969c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue