Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a36b5
)
Fix Bug9100_DumpComputePosition.py in SSL mode
author
Anthony Geay
<anthony.geay@edf.fr>
Fri, 13 Aug 2021 14:43:29 +0000
(16:43 +0200)
committer
Anthony 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
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Gen_No_Session_i.cxx
b/src/SMESH_I/SMESH_Gen_No_Session_i.cxx
index cbcc33eb3260f3bc514f2a29671c8b7ea2743f8e..2b4e33cc2971788d2f10b09fe97c865a9eef657e 100644
(file)
--- 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;
}