FIX:Previously, null pointers were protected and local variables were not noticed

jira: STUDIO-14002
Change-Id: I78157b91b86544215847c3e76d4f3b9de623c527
(cherry picked from commit 4522edc84de2bc009f59b44ed0ce1d4c954aaaf9)
This commit is contained in:
zhou.xu 2025-08-13 10:44:50 +08:00 committed by Noisyfox
parent 6f52bae686
commit 20a9682c18

View file

@ -1928,7 +1928,7 @@ bool GUI_App::is_blocking_printing(MachineObject *obj_)
if (!dev) return true;
std::string target_model;
if (obj_ == nullptr) {
auto obj_ = dev->get_selected_machine();
obj_ = dev->get_selected_machine();
if (obj_) {
target_model = obj_->printer_type;
}