FIX:add null pointer protection for m_partplate_list

jira: none
Change-Id: I64f778c8c4773355fa2f3b6bedf924dd7683d7bb
This commit is contained in:
zhou.xu 2024-06-27 16:41:35 +08:00 committed by Lane.Wei
parent f493a4495b
commit 3e607854ed
1 changed files with 1 additions and 1 deletions

View File

@ -2719,7 +2719,7 @@ bool PartPlate::set_shape(const Pointfs& shape, const Pointfs& exclude_areas, Ve
else {
;
}
if (m_partplate_list->m_bed3d && !m_partplate_list->m_bed3d->get_model_filename().empty()) {
if (m_partplate_list && m_partplate_list->m_bed3d && !m_partplate_list->m_bed3d->get_model_filename().empty()) {
set_logo_box_by_bed(m_partplate_list->m_bed3d->get_model().get_bounding_box());
}