From 0f316b5c45c215313d73b77f07fbc0c90ed53839 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Tue, 24 Jun 2008 10:24:59 -0400 Subject: [PATCH 1/1] When emitting a signal, check for a null string --- atk-adaptor/bridge.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c index 8764e9f..e773384 100644 --- a/atk-adaptor/bridge.c +++ b/atk-adaptor/bridge.c @@ -685,7 +685,11 @@ static void emit(AtkObject *object, const char *name, const char *detail, dbus_i type_as_string = "o"; if (!val) val = ""; } - else if (type == DBUS_TYPE_STRING) type_as_string = "s"; + else if (type == DBUS_TYPE_STRING) + { + type_as_string = "s"; + if (!val) val = ""; + } else if (type == DBUS_TYPE_INT32) type_as_string = "i"; else if (type == DBUS_TYPE_UINT32) type_as_string = "u"; else if (type == DBUS_TYPE_INVALID) -- 2.7.4