1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0033377: Data Exchange - STEPCAFControl_Reader crash in OCC 7.7.0

Added checking for null object for STEPCAFControl_Reader::SettleShapeData
This commit is contained in:
dpasukhi 2023-05-10 19:26:55 +01:00 committed by vglukhik
parent d69c55b2e6
commit e84e862fc1

View File

@ -4657,6 +4657,8 @@ TDF_Label STEPCAFControl_Reader::SettleShapeData(const Handle(StepRepr_Represent
const Handle(Transfer_TransientProcess)& TP) const
{
TDF_Label aResult = theLab;
if (theItem.IsNull())
return aResult;
Handle(TCollection_HAsciiString) hName = theItem->Name();
if (hName.IsNull() || hName->IsEmpty())