fix crash with null pointer links
in PropertyLinkList handle case with null pointers as value in STEP reader avoid to create coumpound objects with null pointer links
This commit is contained in:
@@ -211,10 +211,10 @@ void ImportOCAF::loadShapes(const TDF_Label& label, const TopLoc_Location& loc,
|
||||
loadShapes(it.Value(), part_loc, part_name, asm_name, isRef, localValue);
|
||||
}
|
||||
|
||||
if (pcCompound)
|
||||
if (pcCompound) {
|
||||
pcCompound->Links.setValues(localValue);
|
||||
|
||||
lValue.push_back(pcCompound);
|
||||
lValue.push_back(pcCompound);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user