check systray dbus name existence before attempting to recover session
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 15 Oct 2015 17:10:58 +0000 (13:10 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 15 Oct 2015 17:13:22 +0000 (13:13 -0400)
in the case that a system error occurs the dbus method for returning the
session name can fail, leading to a null return

CID 1327399

src/modules/systray/e_mod_notifier_watcher.c

index 0bde949..d3c25fa 100644 (file)
@@ -190,7 +190,7 @@ systray_notifier_dbus_watcher_start(Eldbus_Connection *connection, E_Notifier_Wa
    dbus = eldbus_connection_unique_name_get(conn);
    if (systray_ctx_get()->config->items)
      eina_hash_free_cb_set(systray_ctx_get()->config->items, (Eina_Free_Cb)systray_notifier_item_hash_del);
-   if (systray_ctx_get()->config->dbus && systray_ctx_get()->config->items)
+   if (dbus && systray_ctx_get()->config->dbus && systray_ctx_get()->config->items)
      {
         if (!strcmp(systray_ctx_get()->config->dbus, dbus))
           {