From: mpv Date: Tue, 17 Jul 2018 14:55:50 +0000 (+0300) Subject: Fix for the issue #2523 : avoid segmentation fault if FILL is badly finished X-Git-Tag: SHAPER_V9_1_0RC1~120 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=45c817bb3799107e0d22620f1050b9d476240389;p=modules%2Fshaper.git Fix for the issue #2523 : avoid segmentation fault if FILL is badly finished --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp index 7a765a11c..9104486c1 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp @@ -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()) {