Salome HOME
22540: Fix the case if no edges are given
authorskv <skv@opencascade.com>
Mon, 10 Nov 2014 09:37:04 +0000 (12:37 +0300)
committerskv <skv@opencascade.com>
Mon, 10 Nov 2014 09:37:04 +0000 (12:37 +0300)
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx

index 914158002cfd653ff08c18fbece0c48a10eb446c..e67c0a47a4be4f71da4c9388b78f3744438210db 100644 (file)
@@ -212,6 +212,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
       }
     }
 
+    if (aSeqEdgesIn->IsEmpty()) {
+      Standard_ConstructionError::Raise("No edges given");
+    }
+
     // 2. Connect edges to wires of maximum length
     Handle(TopTools_HSequenceOfShape) aSeqWiresOut;
     ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, Precision::Confusion(),