]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
Salome HOME
0023326: [CEA 1934] Error when extracting a shape
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ShapeDriver.cxx
index 436e2a9270168daf8f9529e246ba3f03cd398d9e..b7947fdf7d0ae0c24ec24efd923474dd6149834d 100644 (file)
@@ -1015,6 +1015,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(LOGBOOK& log) const
 
     aShape = anExtractor.GetResult();
 
+    if (aShape.IsNull()) {
+      Standard_ConstructionError::Raise("Result of extraction is empty");
+    }
+
     // Get statistics.
     const TopTools_ListOfShape       &aRemoved    = anExtractor.GetRemoved();
     const TopTools_ListOfShape       &aModified   = anExtractor.GetModified();