From e4ff2bbb05bbb690775194de43a70008ba9e209e Mon Sep 17 00:00:00 2001 From: ika Date: Thu, 16 Jun 2016 16:06:53 +0300 Subject: [PATCH] 0026786: Segmentation violation exception raised if a shape to be fixed is null Add check for null shape. --- src/ShapeProcessAPI/ShapeProcessAPI_ApplySequence.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ShapeProcessAPI/ShapeProcessAPI_ApplySequence.cxx b/src/ShapeProcessAPI/ShapeProcessAPI_ApplySequence.cxx index 4a726bba16..b992c80aa7 100644 --- a/src/ShapeProcessAPI/ShapeProcessAPI_ApplySequence.cxx +++ b/src/ShapeProcessAPI/ShapeProcessAPI_ApplySequence.cxx @@ -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);