From: mpv Date: Wed, 28 Nov 2018 07:53:16 +0000 (+0300) Subject: Potential fix for the issue #2752 : ASAN : extrusion cut crash . X-Git-Tag: End2018~139 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8122d4d2480164ce6367fc565b17337c4d2271bb;p=modules%2Fshaper.git Potential fix for the issue #2752 : ASAN : extrusion cut crash . --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp index ccb43b406..bc2f92a4d 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp @@ -555,7 +555,8 @@ bool FeaturesPlugin_ValidatorExtrusionDir::isValid( } } - if(!aDirShape.get()) { + if(!aDirShape.get() || aDirShape->isNull() || + aDirShape->shapeType() != GeomAPI_Shape::EDGE) { // Check that dir can be empty. if(!isShapesCanBeEmpty(aCheckAttribute, theError)) { theError = "Error: Base objects list contains vertex or edge, so attribute \"%1\" "