From c04d1af702c6287b68c179e442704df339ddbcf2 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 5 May 2016 08:27:00 +0300 Subject: [PATCH] Issue #1481 Fatal error when activate: correction to avoid crash on activating part --- src/GeomAPI/GeomAPI_Edge.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GeomAPI/GeomAPI_Edge.cpp b/src/GeomAPI/GeomAPI_Edge.cpp index eed617307..63761a031 100644 --- a/src/GeomAPI/GeomAPI_Edge.cpp +++ b/src/GeomAPI/GeomAPI_Edge.cpp @@ -138,6 +138,9 @@ bool GeomAPI_Edge::isEqual(const std::shared_ptr theEdge) const const TopoDS_Shape& aMyShape = const_cast(this)->impl(); const TopoDS_Shape& aInShape = theEdge->impl(); + if (aMyShape.IsNull() || aInShape.IsNull()) + return false; + if (aMyShape.ShapeType() != aInShape.ShapeType()) return false; -- 2.39.2