summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2021-11-02 17:10:46 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2021-11-02 17:10:46 +0100
commite64e7d77c62d559d74ed1954392911d5289abed0 (patch)
tree52405e2f5429a101055b3ebe28d97dacc581b8d0
parent3bfb56367910811a2a84d25bd5a7a1357ee6e135 (diff)
downloadenlightenment-e64e7d77c62d559d74ed1954392911d5289abed0.tar.gz
music-control: do not crash when no config is selected
this is a fresh config crash.
-rw-r--r--src/modules/music-control/ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/music-control/ui.c b/src/modules/music-control/ui.c
index 03bdf95f2a..ce66173c44 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);
}