From 3583c17450963925e1f48be6f19d07d2b9f3d5e5 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 7 Nov 2018 12:39:10 +0300 Subject: [PATCH] Fix crash. --- src/FeaturesPlugin/FeaturesPlugin_Extrusion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.2