mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-05 22:30: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,6 +190,9 @@ namespace SMESH
|
|||||||
if (theSObject->FindAttribute(anAttr, "AttributeIOR")) {
|
if (theSObject->FindAttribute(anAttr, "AttributeIOR")) {
|
||||||
_PTR(AttributeIOR) anIOR = anAttr;
|
_PTR(AttributeIOR) anIOR = anAttr;
|
||||||
CORBA::String_var aVal = anIOR->Value().c_str();
|
CORBA::String_var aVal = anIOR->Value().c_str();
|
||||||
|
// 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 app->orb()->string_to_object(aVal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user