checking for null swept curve was added
Adding test case
Standard_Boolean StepToGeom_MakeCurve::Convert (const Handle(StepGeom_Curve)& SC, Handle(Geom_Curve)& CC)
{
+ if (SC.IsNull()){
+ return Standard_False;
+ }
if (SC->IsKind(STANDARD_TYPE(StepGeom_Line))) {
const Handle(StepGeom_Line) L = Handle(StepGeom_Line)::DownCast(SC);
return StepToGeom_MakeLine::Convert(L,*((Handle(Geom_Line)*)&CC));
005 xde
006 modalg
007 moddata
-
+008 step
--- /dev/null
+pload XDE
+
+
+
+
+
+
+
+
--- /dev/null
+puts "============"
+puts "CR22871"
+puts "============"
+puts ""
+#######################################################################
+# Step Reader raises exception on invalid entity (null swept curve)
+#######################################################################
+
+set info [stepread [locate_data_file bug22871_null-swept-curve.stp] s *]
+set check [lsearch $info Exception*]
+if { $check != -1 } {
+ puts "Error : Step Reader raises exception"
+}
+
+