Ultimaker / CuraEngine

Powerful, fast and robust engine for converting 3D models into g-code instructions for 3D printers. It is part of the larger open source project Cura.
https://ultimaker.com/en/products/cura-software
GNU Affero General Public License v3.0
1.66k stars 874 forks source link

CURA-11757 fix crash with empty layers #2053

Closed wawanbreton closed 3 months ago

wawanbreton commented 3 months ago

Apparently in some conditions it is possible to ask for the extruders use list at a layer that don't have one. It is also possible to get an empty list for an existing layer. In both cases this cas lead to crashes because somes consumers of this list assume it is not empty. These changes add protections for those cases, while not changing the "normal" situations.

CURA-11757