SALOME::GenericObj_var gobj;
try
{
- obj = getORB()->string_to_object(anIOR.c_str());
- gobj = SALOME::GenericObj::_narrow(obj);
- if(! CORBA::is_nil(gobj) )
- {
- gobj->Destroy();
- }
+ obj = getORB()->string_to_object(anIOR.c_str());
+ if(obj->_non_existent())return;
+ gobj = SALOME::GenericObj::_narrow(obj);
+ if(! CORBA::is_nil(gobj) )
+ {
+ gobj->Destroy();
+ }
}
catch(const CORBA::Exception& e)
{
try
{
obj = getORB()->string_to_object(anIOR.c_str());
+ if(obj->_non_existent())return;
gobj = SALOME::GenericObj::_narrow(obj);
if(! CORBA::is_nil(gobj) )
{
//=======================================================================
SALOMEDSImpl_AttributeIOR* SALOMEDSImpl_AttributeIOR::Set (const DF_Label& L,
- const std::string& S)
+ const std::string& S)
{
SALOMEDSImpl_AttributeIOR* A = NULL;
if (!(A=(SALOMEDSImpl_AttributeIOR*)L.FindAttribute(SALOMEDSImpl_AttributeIOR::GetID()))) {