1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0029633: Data Exchange - access violation in StepVisual_PresentationStyleAssignment while translating STEP file

Add several checks for null.
This commit is contained in:
ika
2018-03-23 18:12:00 +03:00
committed by bugmaster
parent bc728d2621
commit f0bef12142
4 changed files with 22 additions and 3 deletions

View File

@@ -3415,7 +3415,7 @@ static void setDimObjectToXCAF(const Handle(Standard_Transient)& theEnt,
aDimObj->SetClassOfTolerance(aHolle, aFV, aG);
}
if (!aCRI.IsNull() && aCRI->ItemElement()->Length() > 0)
if (!aCRI.IsNull() && !aCRI->ItemElement().IsNull() && aCRI->ItemElement()->Length() > 0)
{
//get modifiers
XCAFDimTolObjects_DimensionModifiersSequence aModifiers;