Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Extrusion.cpp
index 737a563b34aeaa54469b29c06045357c45a75d86..b49f5885488d020c7618e28923def08d36433ae3 100644 (file)
@@ -45,6 +45,8 @@ void FeaturesPlugin_Extrusion::execute()
 
   boost::shared_ptr<GeomAPI_Shape> aFace = 
     boost::dynamic_pointer_cast<GeomAPI_Shape>(aFaceRef->value());
+  if (!aFace)
+    return;
 
   boost::shared_ptr<GeomAPI_Shape> aContext = 
     boost::dynamic_pointer_cast<GeomAPI_Shape>(aFaceRef->context());
@@ -148,4 +150,4 @@ void FeaturesPlugin_Extrusion::LoadNamingDS(GeomAlgoAPI_Extrusion& theFeature,
     theResultBody->generated(aTopFace, _FIRST_TAG);
   }
 
-}
\ No newline at end of file
+}