mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026786: Segmentation violation exception raised if a shape to be fixed is null
Add check for null shape.
This commit is contained in:
parent
f767cea690
commit
e4ff2bbb05
@ -64,6 +64,8 @@ TopoDS_Shape ShapeProcessAPI_ApplySequence::PrepareShape(const TopoDS_Shape& sha
|
|||||||
const Standard_Boolean /*fillmap*/,
|
const Standard_Boolean /*fillmap*/,
|
||||||
const TopAbs_ShapeEnum /*until*/)
|
const TopAbs_ShapeEnum /*until*/)
|
||||||
{
|
{
|
||||||
|
if (shape.IsNull())
|
||||||
|
return shape;
|
||||||
Handle(Resource_Manager) rsc = myContext->ResourceManager();
|
Handle(Resource_Manager) rsc = myContext->ResourceManager();
|
||||||
myContext->Init(shape);
|
myContext->Init(shape);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user