X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Vertex.cpp;h=b917837a09cfcaa4e9589598625f7a4d4f63765e;hb=61cd0845b41710ad4e7eae07cc6106904be67b9f;hp=d881d79b5bf0ea0cbbb7106bc0d3507f9aa05384;hpb=b41162256f00b8366751409f7f25dce00dfe6276;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Vertex.cpp b/src/GeomAPI/GeomAPI_Vertex.cpp index d881d79b5..b917837a0 100644 --- a/src/GeomAPI/GeomAPI_Vertex.cpp +++ b/src/GeomAPI/GeomAPI_Vertex.cpp @@ -37,6 +37,8 @@ std::shared_ptr GeomAPI_Vertex::point() bool GeomAPI_Vertex::isEqual(const std::shared_ptr theVert) const { + if (!theVert.get() || ! theVert->isVertex()) + return false; const TopoDS_Shape& aMyShape = const_cast(this)->impl(); const TopoDS_Shape& aInShape = theVert->impl();