ensure empd_song_item exists before trying to show it on list change

This commit is contained in:
Mike Blumenkrantz 2016-06-17 12:08:05 -04:00
parent 4ce1ea622d
commit 8cfc6f6553
1 changed files with 1 additions and 1 deletions

View File

@ -3030,7 +3030,7 @@ empc_queue_list_changes(void *d EINA_UNUSED, int t EINA_UNUSED, Empd_Empdd_Queue
it = empd_song_item;
queue_list_handler(ev->value, EINA_TRUE);
if ((!it) || (it != empd_song_item))
if (empd_song_item && ((!it) || (it != empd_song_item)))
elm_genlist_item_show(empd_song_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
return ECORE_CALLBACK_RENEW;
}