From 50dabfbfdf2a995c10dd3bb029b88092e0c73b3e Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 16 Mar 2020 14:26:51 +0300 Subject: [PATCH] #18861 [CEA] Unstable Netgen 1D-2D-3D algorithm: Fix crash caused by improper usage of SObject::GetFather() --- src/SMESHGUI/SMESHGUI.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );