forked from enlightenment/enlightenment
music-control: do not crash when no config is selected
this is a fresh config crash.
This commit is contained in:
parent
3bfb563679
commit
e64e7d77c6
|
@ -149,6 +149,7 @@ _player_name_update(E_Music_Control_Instance *inst)
|
|||
{
|
||||
Edje_Message_String msg;
|
||||
msg.str = (char *)music_player_players[inst->ctxt->config->player_selected].name;
|
||||
EINA_SAFETY_ON_NULL_RETURN(msg.str);
|
||||
edje_object_message_send(inst->content_popup, EDJE_MESSAGE_STRING, 0, &msg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue