From: asl Date: Mon, 12 Dec 2005 13:06:48 +0000 (+0000) Subject: Crash if assign set of hypotheses X-Git-Tag: T_3_1_0pre~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6a4db873933d734b14e7aa69774e5c2f02c063a;p=modules%2Fsmesh.git Crash if assign set of hypotheses --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 97bed35c7..88600cd6c 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -633,6 +633,9 @@ void SMESHGUI_MeshOp::onHypoSet( const QString& theSetName ) { const QString& aHypoTypeName = (*aHypoList)[ i ]; HypothesisData* aHypData = SMESH::GetHypothesisData( aHypoTypeName ); + if( !aHypData ) + continue; + int aDim = aHypData->Dim[0]; // create or/and set int index = -1;