]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Crash if assign set of hypotheses
authorasl <asl@opencascade.com>
Mon, 12 Dec 2005 13:06:48 +0000 (13:06 +0000)
committerasl <asl@opencascade.com>
Mon, 12 Dec 2005 13:06:48 +0000 (13:06 +0000)
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index 97bed35c7d3877de34801ee8cd8def1890da5117..88600cd6c25740a9e65ad3fc22afd4c93e86835a 100644 (file)
@@ -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;