]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Potential fix for the issue #2752 : ASAN : extrusion cut crash .
authormpv <mpv@opencascade.com>
Wed, 28 Nov 2018 07:53:16 +0000 (10:53 +0300)
committermpv <mpv@opencascade.com>
Wed, 28 Nov 2018 07:53:16 +0000 (10:53 +0300)
src/FeaturesPlugin/FeaturesPlugin_Validators.cpp

index ccb43b40643951035c1df9b12e70711e5bcb9576..bc2f92a4d19534c14d4f8a9b57e1f08dc71d17cc 100644 (file)
@@ -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\" "