From: mzn Date: Tue, 6 Sep 2005 11:25:04 +0000 (+0000) Subject: Fix for problem: crash of application during getting object with empty ior. X-Git-Tag: TG-Start-D5-38-2003~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d9b96c9d1e96dabb4cd0ad79ada97e92536ee2c0;p=modules%2Fkernel.git Fix for problem: crash of application during getting object with empty ior. --- diff --git a/src/SALOMEDS/SALOMEDS_SObject.cxx b/src/SALOMEDS/SALOMEDS_SObject.cxx index ae188aac1..66a1dc6f9 100644 --- a/src/SALOMEDS/SALOMEDS_SObject.cxx +++ b/src/SALOMEDS/SALOMEDS_SObject.cxx @@ -233,7 +233,8 @@ CORBA::Object_ptr SALOMEDS_SObject::GetObject() CORBA::Object_var obj; if(_isLocal) { std::string anIOR = GetIOR(); - obj = _orb->string_to_object(anIOR.c_str()); + if (!anIOR.empty()) + obj = _orb->string_to_object(anIOR.c_str()); return obj._retn(); } else {