From 38e784dd495d7baa3f1cf0cabde1f36be58693be Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 12 Mar 2025 20:02:34 +0800 Subject: [PATCH] FIX:fixed the crash caused by file transfer jira:[none] Change-Id: Ice1461eff200219792e4fb8b20aa36c0c176cd6f --- src/slic3r/GUI/Printer/PrinterFileSystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp index a9f7c98fa..9862786a1 100644 --- a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp +++ b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp @@ -1102,6 +1102,10 @@ boost::uint32_t PrinterFileSystem::RequestMediaAbility(int api_version) void PrinterFileSystem::RequestUploadFile() { + if (!m_upload_file) { + return; + } + json req; req["type"] = "model"; req["storage"] = m_upload_file->select_storage;