From: vsr Date: Mon, 16 Mar 2020 11:26:51 +0000 (+0300) Subject: #18861 [CEA] Unstable Netgen 1D-2D-3D algorithm: Fix crash caused by improper usage... X-Git-Tag: V9_5_0a2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=50dabfbfdf2a995c10dd3bb029b88092e0c73b3e;p=modules%2Fsmesh.git #18861 [CEA] Unstable Netgen 1D-2D-3D algorithm: Fix crash caused by improper usage of SObject::GetFather() --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index ba08d5101..8d2bb1606 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -1457,7 +1457,7 @@ namespace if ( !io->hasEntry() ) continue; _PTR(SObject) so = SMESH::getStudy()->FindObjectID( io->getEntry() ); SMESH::SMESH_Mesh_var mesh; - while ( mesh->_is_nil() && so ) + while ( mesh->_is_nil() && so && so->GetID() != "0:" ) { CORBA::Object_var obj = SMESH::SObjectToObject( so ); SMESH::SMESH_IDSource_var isrc = SMESH::SMESH_IDSource::_narrow( obj );