Fix of a crash in bridging over sparse #9996

This commit is contained in:
Lukas Matena 2023-03-10 08:38:21 +01:00
parent 906ccadfbc
commit ca0b218a56

View File

@ -1658,7 +1658,9 @@ void PrintObject::bridge_over_infill()
}
// generate sparse infill polylines from lower layers to get anchorable polylines
Polylines lower_layer_polylines = po->get_layer(lidx)->lower_layer->generate_sparse_infill_polylines_for_anchoring();
Polylines lower_layer_polylines = po->get_layer(lidx)->lower_layer
? po->get_layer(lidx)->lower_layer->generate_sparse_infill_polylines_for_anchoring();
: Polylines();
for (std::pair<const LayerSlice *, SurfacesPtr> candidates : bridging_surface_candidates) {
if (candidates.second.empty()) {