]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1481 Fatal error when activate: correction to avoid crash on activating part
authornds <nds@opencascade.com>
Thu, 5 May 2016 05:27:00 +0000 (08:27 +0300)
committernds <nds@opencascade.com>
Thu, 5 May 2016 05:27:24 +0000 (08:27 +0300)
src/GeomAPI/GeomAPI_Edge.cpp

index eed61730738abc4c2614a5c9b0c0f9603fdbd688..63761a0317b65c5a040d45132a313753115df0ba 100644 (file)
@@ -138,6 +138,9 @@ bool GeomAPI_Edge::isEqual(const std::shared_ptr<GeomAPI_Shape> theEdge) const
   const TopoDS_Shape& aMyShape = const_cast<GeomAPI_Edge*>(this)->impl<TopoDS_Shape>();
   const TopoDS_Shape& aInShape = theEdge->impl<TopoDS_Shape>();
 
+  if (aMyShape.IsNull() || aInShape.IsNull())
+    return false;
+
   if (aMyShape.ShapeType() != aInShape.ShapeType())
     return false;