From 008862d25b364305a7a75047cc56d6914d97e1fc Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 7 Nov 2005 12:32:37 +0000 Subject: [PATCH] PAL10400: Mandrake porting: SALOMEDS::SComponent::ComponentIOR() leads to Salome crash if the IOR is not set --- src/SALOMEDS/SALOMEDS_SComponent_i.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SALOMEDS/SALOMEDS_SComponent_i.cxx b/src/SALOMEDS/SALOMEDS_SComponent_i.cxx index 01f0b62e6..85d0d8747 100644 --- a/src/SALOMEDS/SALOMEDS_SComponent_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SComponent_i.cxx @@ -72,7 +72,10 @@ CORBA::Boolean SALOMEDS_SComponent_i::ComponentIOR(CORBA::String_out IOR) { SALOMEDS::Locker lock; TCollection_AsciiString ior; - if(!Handle(SALOMEDSImpl_SComponent)::DownCast(_impl)->ComponentIOR(ior)) return false; + if(!Handle(SALOMEDSImpl_SComponent)::DownCast(_impl)->ComponentIOR(ior)) { + IOR = CORBA::string_dup(""); + return false; + } IOR = CORBA::string_dup(ior.ToCString()); return true; } -- 2.39.2