aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-18 12:54:09 -0600
committerTed Gould <ted@gould.cx>2011-02-18 12:54:09 -0600
commit92029bc783017bec46a862ae79d72076157ac38f (patch)
tree5cd21774ca4416d4858bea14b659eb4f4d8d9d5d /tests/test-glib-layout-client.c
parentbcedc26848a0fe4f2f67a129d34976f69eb03fdf (diff)
parent87703b408d42ce97b5a64142b0c33951d366890a (diff)
downloadlibdbusmenu-92029bc783017bec46a862ae79d72076157ac38f.tar.gz
libdbusmenu-92029bc783017bec46a862ae79d72076157ac38f.tar.bz2
libdbusmenu-92029bc783017bec46a862ae79d72076157ac38f.zip
Updating to trunk
Diffstat (limited to 'tests/test-glib-layout-client.c')
-rw-r--r--tests/test-glib-layout-client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c
index 5ea0cf8..3afe042 100644
--- a/tests/test-glib-layout-client.c
+++ b/tests/test-glib-layout-client.c
@@ -81,6 +81,11 @@ layout_updated (DbusmenuClient * client, gpointer data)
g_debug("Layout Updated");
DbusmenuMenuitem * menuroot = dbusmenu_client_get_root(client);
+ if (menuroot == NULL) {
+ g_debug("Root NULL, waiting");
+ return;
+ }
+
layout_t * layout = &layouts[layouton];
if (!verify_root_to_layout(menuroot, layout)) {