aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-17 11:04:40 -0600
committerTed Gould <ted@gould.cx>2011-02-17 11:04:40 -0600
commit44927e6da03d633f0958ce5e04e62e752a43d201 (patch)
tree0e5f56cf5a8bfd5a455d3fe82f3280bbbd42b852 /tests/test-glib-layout-client.c
parentdf78fc4c1a098aa95fe530028b26a0f175bb4cf4 (diff)
parent87703b408d42ce97b5a64142b0c33951d366890a (diff)
downloadlibdbusmenu-44927e6da03d633f0958ce5e04e62e752a43d201.tar.gz
libdbusmenu-44927e6da03d633f0958ce5e04e62e752a43d201.tar.bz2
libdbusmenu-44927e6da03d633f0958ce5e04e62e752a43d201.zip
Import upstream version 0.3.98
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)) {