FIX:fix crash when there is no desgin data

jira:[STUDIO-6630]

Change-Id: I3dfc66164e8f20d564b9f639f72d6ae221722977
This commit is contained in:
tao wang 2024-03-22 09:38:57 +08:00 committed by Lane.Wei
parent 5e03cb3024
commit 6c12b711fa
1 changed files with 1 additions and 2 deletions

View File

@ -110,8 +110,7 @@ void ProjectPanel::on_reload(wxCommandEvent& evt)
update_type = model.model_info->origin;
if (!model.design_info->DesignId.empty()) {
if (model.design_info && !model.design_info->DesignId.empty()) {
if (m_model_id_map.count(model.design_info->DesignId) > 0) {
model_id = m_model_id_map[model.design_info->DesignId];
}