diff options
author | Ted Gould <ted@gould.cx> | 2010-07-20 11:08:32 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-07-20 11:08:32 -0500 |
commit | 90ebe32795a5af7f659da78ba96414c49c268b46 (patch) | |
tree | 7fe4549f125fe8e4979c789d286800cb7d998478 | |
parent | 57547736e1a274928546a291147a199f67d1bc50 (diff) | |
download | libdbusmenu-90ebe32795a5af7f659da78ba96414c49c268b46.tar.gz libdbusmenu-90ebe32795a5af7f659da78ba96414c49c268b46.tar.bz2 libdbusmenu-90ebe32795a5af7f659da78ba96414c49c268b46.zip |
Making sure we got a listener before we go all callin' stuff on it.
-rw-r--r-- | libdbusmenu-glib/client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 84e0efc..1c962dd 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -428,6 +428,10 @@ get_properties_callback (DBusGProxy *proxy, GPtrArray *OUT_properties, GError *e GHashTable * properties = g_value_get_boxed(vproperties); properties_listener_t * listener = find_listener(listeners, 0, id); + if (listener == NULL) { + g_warning("Unable to find listener for ID %d", id); + continue; + } if (!listener->replied) { listener->callback(proxy, properties, NULL, listener->user_data); |