Toponaming: Fix crash with invalid external geometry

This commit is contained in:
bgbsww
2024-06-17 10:58:56 -04:00
committed by Chris Hennes
parent 2248fc7adb
commit c5de6ccfc7

View File

@@ -7403,6 +7403,11 @@ void SketchObject::validateExternalLinks()
Base::Console().Warning(
this->getFullLabel(), (indexError.getMessage() + "\n").c_str());
}
catch ( Base::ValueError& valueError ) {
removeBadLink = true;
Base::Console().Warning(
this->getFullLabel(), (valueError.getMessage() + "\n").c_str());
}
catch (Standard_Failure&) {
removeBadLink = true;
}