bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e64e7d77c62d559d74ed1954392911d5289abed0

commit e64e7d77c62d559d74ed1954392911d5289abed0
Author: Marcel Hollerbach <[email protected]>
Date:   Tue Nov 2 17:10:46 2021 +0100

    music-control: do not crash when no config is selected
    
    this is a fresh config crash.
---
 src/modules/music-control/ui.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/music-control/ui.c b/src/modules/music-control/ui.c
index 03bdf95f2..ce66173c4 100644
--- a/src/modules/music-control/ui.c
+++ b/src/modules/music-control/ui.c
@@ -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);
 }
 

-- 


Reply via email to