From: nds Date: Tue, 24 Sep 2019 09:56:18 +0000 (+0300) Subject: 0030995: Visualization - crash in angle computation between curvilinear faces X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=428db9e53d0ef88982951a3206663efbe6186b74;p=occt-copy.git 0030995: Visualization - crash in angle computation between curvilinear faces --- diff --git a/src/AIS/AIS.cxx b/src/AIS/AIS.cxx index 60b6067de3..f2b74f2e45 100644 --- a/src/AIS/AIS.cxx +++ b/src/AIS/AIS.cxx @@ -1052,6 +1052,8 @@ Standard_Boolean AIS::InitAngleBetweenCurvilinearFaces (const TopoDS_Face& } aFirstLine = Handle(Geom_Line)::DownCast (aFirstSurf->UIso (aFirstU)); + if (aFirstLine.IsNull()) + return Standard_False; if (theSecondSurfType == AIS_KOS_Cylinder) {