From: nds Date: Thu, 5 May 2016 05:27:00 +0000 (+0300) Subject: Issue #1481 Fatal error when activate: correction to avoid crash on activating part X-Git-Tag: V_2.3.0~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c04d1af702c6287b68c179e442704df339ddbcf2;p=modules%2Fshaper.git Issue #1481 Fatal error when activate: correction to avoid crash on activating part --- 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;