X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Tools.cpp;h=c15700df1cbc68621f0320f5efe17ae32116bc34;hb=b06cf1477fb1ee46d7ae260c234cac5d0000abf2;hp=0825957681036ae6d31270139c4cd882d46b6512;hpb=9ec274edd77cf6baba26d4571fbef143597d52df;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Tools.cpp b/src/GeomAPI/GeomAPI_Tools.cpp index 082595768..c15700df1 100644 --- a/src/GeomAPI/GeomAPI_Tools.cpp +++ b/src/GeomAPI/GeomAPI_Tools.cpp @@ -28,6 +28,9 @@ //================================================================================================== GeomShapePtr GeomAPI_Tools::getTypedShape(const GeomShapePtr& theShape) { + if (!theShape.get()) + return GeomShapePtr(); + GeomShapePtr aTypedShape = theShape; GeomAPI_Shape::ShapeType aType = theShape->shapeType();