From: ika Date: Thu, 16 Jun 2016 13:06:53 +0000 (+0300) Subject: 0026786: Segmentation violation exception raised if a shape to be fixed is null X-Git-Tag: V7_1_0_beta~285 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e4ff2bbb05bbb690775194de43a70008ba9e209e;p=occt.git 0026786: Segmentation violation exception raised if a shape to be fixed is null Add check for null shape. --- 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);