From: Anthony Geay Date: Fri, 13 Aug 2021 14:43:29 +0000 (+0200) Subject: Fix Bug9100_DumpComputePosition.py in SSL mode X-Git-Tag: V9_8_0a1~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d185cc9e6180661e9a4453c31b26f62d76cc4e8;p=modules%2Fsmesh.git Fix Bug9100_DumpComputePosition.py in SSL mode --- diff --git a/src/SMESH_I/SMESH_Gen_No_Session_i.cxx b/src/SMESH_I/SMESH_Gen_No_Session_i.cxx index cbcc33eb3..2b4e33cc2 100644 --- a/src/SMESH_I/SMESH_Gen_No_Session_i.cxx +++ b/src/SMESH_I/SMESH_Gen_No_Session_i.cxx @@ -33,7 +33,15 @@ SMESH_Gen_No_Session_i::SMESH_Gen_No_Session_i( CORBA::ORB_ptr orb, GEOM::GEOM_Gen_var SMESH_Gen_No_Session_i::GetGeomEngine( bool isShaper ) { - CORBA::Object_var temp = KERNEL::RetrieveCompo(isShaper ? "SHAPERSTUDY" : "GEOM"); + CORBA::Object_var temp; + try + { + temp = KERNEL::RetrieveCompo(isShaper ? "SHAPERSTUDY" : "GEOM"); + } + catch(...) + { + return GEOM::GEOM_Gen::_nil(); + } myGeomGen = GEOM::GEOM_Gen::_narrow( temp ); return myGeomGen; }