From 6e9295ce4cee26be461fd79686d9ad4749f6f21b Mon Sep 17 00:00:00 2001 From: vsr Date: Sat, 29 Dec 2012 11:23:25 +0000 Subject: [PATCH] 0022051: [CEA 744] SALOME crashes when calliing "BasicProperties" on a sphere degenerated edge --- src/GEOMBase/GEOMBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOMBase/GEOMBase.cxx b/src/GEOMBase/GEOMBase.cxx index 1df7a528c..0e13b280e 100644 --- a/src/GEOMBase/GEOMBase.cxx +++ b/src/GEOMBase/GEOMBase.cxx @@ -512,7 +512,7 @@ TopoDS_Shape GEOMBase::CreateArrowForLinearEdge( const TopoDS_Shape& shape ) try { Standard_Real first, last; Handle(Geom_Curve) curv = BRep_Tool::Curve( TopoDS::Edge( shape ), first, last ); - if ( curv->IsCN(1) ) { + if ( !curv.IsNull() && curv->IsCN(1) ) { const Standard_Real param = ( first+last ) / 2.0; gp_Pnt middleParamPoint; gp_Vec V1; -- 2.39.2