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:
parent
d69c55b2e6
commit
e84e862fc1
@ -4657,6 +4657,8 @@ TDF_Label STEPCAFControl_Reader::SettleShapeData(const Handle(StepRepr_Represent
|
|||||||
const Handle(Transfer_TransientProcess)& TP) const
|
const Handle(Transfer_TransientProcess)& TP) const
|
||||||
{
|
{
|
||||||
TDF_Label aResult = theLab;
|
TDF_Label aResult = theLab;
|
||||||
|
if (theItem.IsNull())
|
||||||
|
return aResult;
|
||||||
|
|
||||||
Handle(TCollection_HAsciiString) hName = theItem->Name();
|
Handle(TCollection_HAsciiString) hName = theItem->Name();
|
||||||
if (hName.IsNull() || hName->IsEmpty())
|
if (hName.IsNull() || hName->IsEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user