0022051: [CEA 744] SALOME crashes when calliing "BasicProperties" on a sphere degenerated edge

This commit is contained in:
vsr 2012-12-29 11:23:25 +00:00
parent 71e5d76282
commit 6e9295ce4c

View File

@ -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;