diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index cde0c96bf4ca..2135d299dd2f 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -612,7 +612,13 @@ void ProjectManager::_open_selected_projects_check_warnings() { } void ProjectManager::_open_selected_projects_check_recovery_mode() { - ProjectList::Item project = project_list->get_selected_projects()[0]; + Vector selected_projects = project_list->get_selected_projects(); + + if (selected_projects.is_empty()) { + return; + } + + const ProjectList::Item &project = selected_projects[0]; if (project.missing) { return; }