passing NULL with Glib interface

Havoc Pennington hp at redhat.com
Sun Nov 6 10:56:30 PST 2005


On Sat, 2005-11-05 at 12:18 -0500, John (J5) Palmieri wrote:
> Hey, this is not a bug.  You can't send NULL.  This is because D-Bus is
> language neutral and NULL means different things.  For instance NULL in
> C can only be applied to pointers where as the None in Python is just
> another type that can be assigned to any variable.
> 

We should probably g_return_if_fail() on null though, instead of sending
empty string...

Havoc




More information about the dbus mailing list