]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
In existingHyps(), protection for hypotheses w/o any gui
authoreap <eap@opencascade.com>
Wed, 10 Nov 2010 15:19:59 +0000 (15:19 +0000)
committereap <eap@opencascade.com>
Wed, 10 Nov 2010 15:19:59 +0000 (15:19 +0000)
             HypothesisData* aData = SMESH::GetHypothesisData( aHypVar->GetName() );
+            if ( !aData) continue;

src/SMESHGUI/SMESHGUI_MeshOp.cxx

index c8217239dce43cc767cc542ab9e76ab69500f1a2..48b4fae6e4e507ec06c8c9d22307ab09611cb6c4 100644 (file)
@@ -860,6 +860,7 @@ void SMESHGUI_MeshOp::existingHyps( const int theDim,
           if ( !aHypVar->_is_nil() )
           {
             HypothesisData* aData = SMESH::GetHypothesisData( aHypVar->GetName() );
+            if ( !aData) continue;
             if ( ( theDim == -1 || aData->Dim.contains( theDim ) ) &&
                  ( isCompatible ( theAlgoData, aData, theHypType )) &&
                  ( isAux == aData->IsAux ))