X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Edge.cpp;h=b5736f4b618d70b52ad2e8c786c8db1ba4d20ff6;hb=3d28bcbab2f3ed0e40295e64f4e836caebc19fca;hp=f9572daa79949e4da668fc374466dc078f598de2;hpb=3a5be0c5d1edb60a71f9daab6dd834ffa45eb550;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Edge.cpp b/src/GeomAPI/GeomAPI_Edge.cpp index f9572daa7..b5736f4b6 100644 --- a/src/GeomAPI/GeomAPI_Edge.cpp +++ b/src/GeomAPI/GeomAPI_Edge.cpp @@ -131,6 +131,8 @@ std::shared_ptr GeomAPI_Edge::line() bool GeomAPI_Edge::isEqual(const std::shared_ptr theEdge) const { + if (!theEdge.get() || ! theEdge->isEdge()) + return false; const TopoDS_Shape& aMyShape = const_cast(this)->impl(); const TopoDS_Shape& aInShape = theEdge->impl();