From 2f979b27c91140be0c7c1cdc5760fdc12b50078f Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Tue, 8 Apr 2025 11:21:27 +0800 Subject: [PATCH] FIX: check the pointer jira: [STUDIO-11084] Change-Id: Iac0f51467f818714e18e2a1c15a8691e0e5ab351 --- src/slic3r/GUI/SelectMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 1f8eb5135..aa86d2dfe 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -2870,7 +2870,7 @@ void SelectMachineDialog::on_set_finish_mapping(wxCommandEvent &evt) void SelectMachineDialog::on_print_job_cancel(wxCommandEvent &evt) { BOOST_LOG_TRIVIAL(info) << "print_job: canceled"; - if (m_print_job->get_print_stage() == PrintingStageFinished) + if (m_print_job && m_print_job->get_print_stage() == PrintingStageFinished) { MessageDialog dlg(this, _L("As the print job has been successfully sent, the cancellation will not bring the print job to a halt. If you need to terminate this job, please stop it in 'Device' page."), _L("Info"), wxYES); dlg.ShowModal();