0027087: [Regression to OCCT 6.7.1] BRepExtrema_DistShapeShape gives wrong result
[occt.git] / src / BRepOffset / BRepOffset_Tool.cxx
index 38f21f0..af3ac10 100644 (file)
@@ -1345,7 +1345,11 @@ static TopoDS_Edge AssembleEdge(const BOPDS_PDS& pDS,
     {
       TopoDS_Vertex CV, V11, V12, V21, V22;
       TopExp::CommonVertex( CurEdge, anEdge, CV );
-      Standard_Boolean IsAutonomCV = IsAutonomVertex( CV, pDS, F1, F2 );
+      Standard_Boolean IsAutonomCV = Standard_False;
+      if (!CV.IsNull())
+      {
+        IsAutonomCV = IsAutonomVertex(CV, pDS, F1, F2);
+      }
       if (IsAutonomCV)
       {
         aGlueTol = BRep_Tool::Tolerance(CV);