From 8d185cc9e6180661e9a4453c31b26f62d76cc4e8 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 13 Aug 2021 16:43:29 +0200 Subject: [PATCH] Fix Bug9100_DumpComputePosition.py in SSL mode --- src/SMESH_I/SMESH_Gen_No_Session_i.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; } -- 2.39.2