]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2523 : avoid segmentation fault if FILL is badly finished
authormpv <mpv@opencascade.com>
Tue, 17 Jul 2018 14:55:50 +0000 (17:55 +0300)
committermpv <mpv@opencascade.com>
Tue, 17 Jul 2018 14:55:50 +0000 (17:55 +0300)
src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp

index 7a765a11c74412b503e7a2a4f9235bd05dc85741..9104486c1b0b337fe615068d27f25e6b1178f2e9 100644 (file)
@@ -208,7 +208,7 @@ void FeaturesPlugin_Boolean::execute()
 
             aBoolAlgo.reset(new GeomAlgoAPI_Partition(aListWithObject, aToolsWithPlanes));
             aResShape = aBoolAlgo->shape();
-            if(aResShape->shapeType() == GeomAPI_Shape::COMPOUND) {
+            if (aResShape.get() && aResShape->shapeType() == GeomAPI_Shape::COMPOUND) {
               int aSubResultsNb = 0;
               GeomAPI_ShapeIterator anIt(aResShape);
               for(; anIt.more(); anIt.next()) {