avoid crash when showing bg tooltip if callback is reached unexpectedly

This commit is contained in:
zmike 2016-10-05 18:19:59 -04:00
parent 00af2f5fbe
commit cf2057ae96
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ bg_update_signal(void)
static Evas_Object *
bg_tooltip_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Object *tooltip)
{
if (bgchooser) return NULL;
if (bgchooser || (!empd_song_item)) return NULL;
return tooltip_create(tooltip, empd_song_item);
}