From b510e94e0661a1558edfcdebb08d82038e37a922 Mon Sep 17 00:00:00 2001 From: tao wang Date: Tue, 30 Aug 2022 17:46:19 +0800 Subject: [PATCH] FIX:add code protection when updating print basic info Change-Id: If64c24e394276c3c127bb12039353ae478481192 --- src/slic3r/GUI/StatusPanel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 5d45d2868..fe4fc54ac 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -1725,6 +1725,7 @@ void StatusPanel::update_left_time(int mc_left_time) void StatusPanel::update_basic_print_data(bool def) { if (def) { + if (!obj) return; wxString prediction = wxString::Format("%s", get_bbl_time_dhms(obj->slice_info->prediction)); wxString weight = wxString::Format("%.2fg", obj->slice_info->weight);