When emitting a signal, check for a null string
authorMike Gorse <mgorse@boston.site>
Tue, 24 Jun 2008 14:24:59 +0000 (10:24 -0400)
committerMike Gorse <mgorse@boston.site>
Tue, 24 Jun 2008 14:24:59 +0000 (10:24 -0400)
atk-adaptor/bridge.c

index 8764e9f..e773384 100644 (file)
@@ -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)