1
0
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:
dpasukhi
2020-09-10 19:28:58 +03:00
committed by bugmaster
parent ce97cd9708
commit 16bb5630bc
2 changed files with 18 additions and 0 deletions

View File

@@ -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();
}