mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
PAL21685: Fatal error after save/open study with Edit group as standalone group
* protect SObjectToObject() from exception in case of invalid IOR
This commit is contained in:
parent
2a69c947b9
commit
c823ef454d
@ -190,7 +190,10 @@ namespace SMESH
|
||||
if (theSObject->FindAttribute(anAttr, "AttributeIOR")) {
|
||||
_PTR(AttributeIOR) anIOR = anAttr;
|
||||
CORBA::String_var aVal = anIOR->Value().c_str();
|
||||
return app->orb()->string_to_object(aVal);
|
||||
// string_to_object() DOC: If the input string is not valid ...
|
||||
// a CORBA::SystemException is thrown.
|
||||
if ( aVal && strlen( aVal ) > 0 )
|
||||
return app->orb()->string_to_object(aVal);
|
||||
}
|
||||
}
|
||||
return CORBA::Object::_nil();
|
||||
|
Loading…
Reference in New Issue
Block a user