Change-Id: I3c6fc0163e1bacac5ea3518c181cc7ef69cec62f
else if (app_hash)
{
AtspiApplication *app = g_hash_table_lookup (app_hash, old);
else if (app_hash)
{
AtspiApplication *app = g_hash_table_lookup (app_hash, old);
- if (app && app->bus_name && !strcmp(app->bus_name, name))
+ if (app && name && app->bus_name && !strcmp(app->bus_name, name))
g_object_run_dispose (G_OBJECT (app));
}
return DBUS_HANDLER_RESULT_HANDLED;
g_object_run_dispose (G_OBJECT (app));
}
return DBUS_HANDLER_RESULT_HANDLED;