]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for problem: crash of application during getting object with empty ior.
authormzn <mzn@opencascade.com>
Tue, 6 Sep 2005 11:25:04 +0000 (11:25 +0000)
committermzn <mzn@opencascade.com>
Tue, 6 Sep 2005 11:25:04 +0000 (11:25 +0000)
src/SALOMEDS/SALOMEDS_SObject.cxx

index ae188aac1d16bf054e5979f13830c73207f3f940..66a1dc6f93fb8e0ef5d6f25d69989c7916f11185 100644 (file)
@@ -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 {