FW: [omniORB] Is this a Bug in OmniORB??

Stefan Seefeld seefeld@sympatico.ca
Wed Aug 7 14:45:02 2002


S. Sahayaraj wrote:
> Hi Bjorn,
> 	What shall I do if I return objects, and not any predefined data
> types??. The string is sample one. Actuall I have to return some object.

CORBA's equivalent of a 'null pointer' is a 'nil reference', so for an 
interface 'Foo', you'd return 'Foo::_nil()', and you can test any 
reference for being 'nil' with 'CORBA::is_nil(ref)'.

That should be covered in any decent CORBA book...

Regards,
		Stefan