PD: Fixes #13446: Crash with hole in additive loft

This commit is contained in:
wmayer
2024-04-14 16:06:54 +02:00
committed by wwmayer
parent a043ed6a3d
commit 4f8606fddb

View File

@@ -2000,7 +2000,7 @@ TopoDS_Compound Hole::findHoles(const TopoDS_Shape& profileshape,
Handle(Geom_Curve) c = BRep_Tool::Curve(edge, c_start, c_end);
// Circle?
if (c->DynamicType() != STANDARD_TYPE(Geom_Circle)) {
if (c.IsNull() || c->DynamicType() != STANDARD_TYPE(Geom_Circle)) {
continue;
}