From: eap Date: Wed, 10 Nov 2010 15:19:59 +0000 (+0000) Subject: In existingHyps(), protection for hypotheses w/o any gui X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c7886f3dd2230ded7aaff815167490aede8b217e;p=modules%2Fsmesh.git In existingHyps(), protection for hypotheses w/o any gui HypothesisData* aData = SMESH::GetHypothesisData( aHypVar->GetName() ); + if ( !aData) continue; --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index c8217239d..48b4fae6e 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -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 ))