Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-09-03 18:52:44 +0300
committerGhostkeeper <rubend@tutanota.com>2020-09-03 18:52:44 +0300
commit8c0e21f0d58549b645cbd5e5823acdfee0c44781 (patch)
tree6f55d7ba439bd30f593d50a0d66a15d2427531b6
parent0b22b94950caba0d45550e37f0a408ad7fc3307a (diff)
Don't crash if mesh loading fails
Some plug-ins (like the OBJReader) return None then. Fixes Sentry issue CURA-14P.
-rwxr-xr-xcura/CuraApplication.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py
index 0446400362..434841160c 100755
--- a/cura/CuraApplication.py
+++ b/cura/CuraApplication.py
@@ -1799,6 +1799,9 @@ class CuraApplication(QtApplication):
return
nodes = job.getResult()
+ if nodes is None:
+ Logger.error("Read mesh job returned None. Mesh loading must have failed.")
+ return
file_name = job.getFileName()
file_name_lower = file_name.lower()
file_extension = file_name_lower.split(".")[-1]