TD: fixes #8144: TD crash

This commit is contained in:
wmayer
2023-01-09 11:43:14 +01:00
parent 000e9a3de4
commit c80a60d8be

View File

@@ -351,7 +351,7 @@ std::vector<TopoDS_Wire> EdgeWalker::sortStrip(std::vector<TopoDS_Wire> fw, bool
{
std::vector<TopoDS_Wire> closedWires; //all the wires should be closed, but anomalies happen
for (auto& w: fw) {
if (BRep_Tool::IsClosed(w)) {
if (!w.IsNull() && BRep_Tool::IsClosed(w)) {
closedWires.push_back(w);
}
}