From: dbv Date: Wed, 7 Nov 2018 09:39:10 +0000 (+0300) Subject: Fix crash. X-Git-Tag: End2018~193 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3583c17450963925e1f48be6f19d07d2b9f3d5e5;p=modules%2Fshaper.git Fix crash. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp index ceb01e793..8944dd362 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp @@ -148,7 +148,7 @@ bool FeaturesPlugin_Extrusion::makeExtrusions(ListOfShape& theBaseShapes, if(!aToShape.get() && aSelection->context().get()) { aToShape = aSelection->context()->shape(); } - if (aToShape->isCompound()) { + if (aToShape.get() && aToShape->isCompound()) { GeomAPI_ShapeIterator anIt(aToShape); aToShape = anIt.current(); } @@ -159,7 +159,7 @@ bool FeaturesPlugin_Extrusion::makeExtrusions(ListOfShape& theBaseShapes, if(!aFromShape.get() && aSelection->context().get()) { aFromShape = aSelection->context()->shape(); } - if (aFromShape->isCompound()) { + if (aFromShape.get() && aFromShape->isCompound()) { GeomAPI_ShapeIterator anIt(aFromShape); aFromShape = anIt.current(); }