From d9b96c9d1e96dabb4cd0ad79ada97e92536ee2c0 Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 6 Sep 2005 11:25:04 +0000 Subject: [PATCH] Fix for problem: crash of application during getting object with empty ior. --- src/SALOMEDS/SALOMEDS_SObject.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.2