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

0033312: Data Exchange - NULL-dereference in StepToTopoDS_TranslateShell::Init()

The condition "if" was changed to opposite
This commit is contained in:
dorlov 2023-01-12 11:39:07 +00:00 committed by Vadim Glukhikh
parent 107b57a955
commit fc72568ba9

View File

@ -138,7 +138,7 @@ void StepToTopoDS_TranslateShell::Init(const Handle(StepVisual_TessellatedShell)
{ {
Handle(TransferBRep_ShapeBinder) aBinder Handle(TransferBRep_ShapeBinder) aBinder
= Handle(TransferBRep_ShapeBinder)::DownCast(aTP->Find(theTSh->TopologicalLink())); = Handle(TransferBRep_ShapeBinder)::DownCast(aTP->Find(theTSh->TopologicalLink()));
if (aBinder.IsNull()) if (!aBinder.IsNull())
{ {
aSh = aBinder->Shell(); aSh = aBinder->Shell();
theHasGeom = Standard_True; theHasGeom = Standard_True;