mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +08:00
0026786: Segmentation violation exception raised if a shape to be fixed is null
Add check for null shape.
This commit is contained in:
@@ -64,6 +64,8 @@ TopoDS_Shape ShapeProcessAPI_ApplySequence::PrepareShape(const TopoDS_Shape& sha
|
||||
const Standard_Boolean /*fillmap*/,
|
||||
const TopAbs_ShapeEnum /*until*/)
|
||||
{
|
||||
if (shape.IsNull())
|
||||
return shape;
|
||||
Handle(Resource_Manager) rsc = myContext->ResourceManager();
|
||||
myContext->Init(shape);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user