Add a check for null array object ("Elements") within StepShape_GeometricSet.cxx
Standard_Integer StepShape_GeometricSet::NbElements () const
{
+ if (elements.IsNull())
+ return 0;
return elements->Length();
}
--- /dev/null
+puts "===================================="
+puts "0031675: Er-ror opening the STEP-file"
+puts "===================================="
+puts ""
+
+pload DCAF
+
+# Read file
+ReadStep D [locate_data_file bug31675.stp]
+XGetOneShape res D
+
+# Checking
+checknbshapes res -face 1036 -wire 2103 -compound 6
+checkshape res f
+
+Close D