From 7a08dae4a6239cfbd27082d201abb33eae4853f3 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 17 Jul 2018 17:55:50 +0300 Subject: [PATCH] Fix for the issue #2523 : avoid segmentation fault if FILL is badly finished --- src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.2