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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user