aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-16 10:29:27 -0600
committerTed Gould <ted@gould.cx>2010-02-16 10:29:27 -0600
commit66e7fd1d00bb4844e4506b481894c7ad341dcfd1 (patch)
treeae771fbe56ab4bbcb326bda915a67995627b019d /src/libappindicator/app-indicator.c
parent99f3dd583adc89eb13328c8a152790542dd20f07 (diff)
parentde406e516344899c4006ce989e5915d7e39a1267 (diff)
downloadlibayatana-appindicator-66e7fd1d00bb4844e4506b481894c7ad341dcfd1.tar.gz
libayatana-appindicator-66e7fd1d00bb4844e4506b481894c7ad341dcfd1.tar.bz2
libayatana-appindicator-66e7fd1d00bb4844e4506b481894c7ad341dcfd1.zip
* Upstream Merge
* Fixing a crash by checking for NULL
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 0324a34..88f6bb6 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -1252,9 +1252,12 @@ setup_dbusmenu (AppIndicator *self)
priv = self->priv;
root = dbusmenu_menuitem_new ();
- gtk_container_forall (GTK_CONTAINER (priv->menu),
- container_iterate,
- root);
+ if (priv->menu)
+ {
+ gtk_container_forall (GTK_CONTAINER (priv->menu),
+ container_iterate,
+ root);
+ }
if (priv->menuservice == NULL)
{