From e84e862fc13893e9200463d6e1f4569aa39a7567 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Wed, 10 May 2023 19:26:55 +0100 Subject: [PATCH] 0033377: Data Exchange - STEPCAFControl_Reader crash in OCC 7.7.0 Added checking for null object for STEPCAFControl_Reader::SettleShapeData --- src/STEPCAFControl/STEPCAFControl_Reader.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index cae2a1bf28..7395804d8f 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -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())