0033312: Data Exchange - NULL-dereference in StepToTopoDS_TranslateShell::Init() IR-2023-01-20
authordorlov <dorlov@opencascade.com>
Thu, 12 Jan 2023 11:39:07 +0000 (11:39 +0000)
committerVadim Glukhikh <vadim.glukhikh@opencascade.com>
Fri, 20 Jan 2023 03:10:45 +0000 (03:10 +0000)
The condition "if" was changed to opposite

src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx

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