From b6a4db873933d734b14e7aa69774e5c2f02c063a Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 12 Dec 2005 13:06:48 +0000 Subject: [PATCH] Crash if assign set of hypotheses --- src/SMESHGUI/SMESHGUI_MeshOp.cxx | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2