check systray dbus name existence before attempting to recover session

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
This commit is contained in:
Mike Blumenkrantz 2015-10-15 13:10:58 -04:00
parent 56ff9ead03
commit dc872be2df
1 changed files with 1 additions and 1 deletions

View 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))
{