From e1b01e17c1e818bbf03e006b01a9cdbd02607c09 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lureau Date: Sun, 5 Oct 2008 00:01:46 +0300 Subject: [PATCH] Don't assert on unknown type, just skip them --- dbus/dbus-gobject.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c index b6e72e2..9c56c1a 100644 --- a/dbus/dbus-gobject.c +++ b/dbus/dbus-gobject.c @@ -460,7 +460,10 @@ write_interface (gpointer key, gpointer val, gpointer user_data) g_free (s); dbus_type = _dbus_gtype_to_signature (G_PARAM_SPEC_VALUE_TYPE (spec)); - g_assert (dbus_type != NULL); + if (dbus_type == NULL) { + g_warning ("Unknown type for property %s", spec->name); + continue; + } can_set = ((spec->flags & G_PARAM_WRITABLE) != 0 && (spec->flags & G_PARAM_CONSTRUCT_ONLY) == 0); -- 1.5.6.5