From 1c7b1830356b3a6b02e6cc7d1bf5cfe0ac9f045a Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 31 Aug 2022 11:15:46 +0800 Subject: [PATCH] FIX:add protection when slice information is not available Change-Id: Iaf654c8a14252f6647a64ded97d4ded3e79d7057 --- 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 00f0644ea..cb09b321b 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -1753,6 +1753,7 @@ void StatusPanel::update_basic_print_data(bool def) { if (def) { if (!obj) return; + if (!obj->slice_info) return; wxString prediction = wxString::Format("%s", get_bbl_time_dhms(obj->slice_info->prediction)); wxString weight = wxString::Format("%.2fg", obj->slice_info->weight);