mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0031675: Data Exchange - Error opening the STEP-file
Add a check for null array object ("Elements") within StepShape_GeometricSet.cxx
This commit is contained in:
@@ -49,5 +49,7 @@ StepShape_GeometricSetSelect StepShape_GeometricSet::ElementsValue(const Standar
|
||||
|
||||
Standard_Integer StepShape_GeometricSet::NbElements () const
|
||||
{
|
||||
if (elements.IsNull())
|
||||
return 0;
|
||||
return elements->Length();
|
||||
}
|
||||
|
Reference in New Issue
Block a user