Salome HOME
Fix Bug9100_DumpComputePosition.py in SSL mode
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 13 Aug 2021 14:43:29 +0000 (16:43 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 13 Aug 2021 14:43:29 +0000 (16:43 +0200)
src/SMESH_I/SMESH_Gen_No_Session_i.cxx

index cbcc33eb3260f3bc514f2a29671c8b7ea2743f8e..2b4e33cc2971788d2f10b09fe97c865a9eef657e 100644 (file)
@@ -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;
 }