bu5hm4n pushed a commit to branch master.

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

commit 0e0cf36a32777a64e432de1aa63d04e35f43729b
Author: Marcel Hollerbach <mar...@osg.samsung.com>
Date:   Wed Sep 2 15:06:13 2020 +0200

    music-control: do not crash if params is NULL
    
    should not happen normally, but it might happen due to a buggy config
    screen.
---
 src/modules/music-control/e_mod_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/music-control/e_mod_main.c 
b/src/modules/music-control/e_mod_main.c
index 1edd2d2ed..ba9ea22db 100644
--- a/src/modules/music-control/e_mod_main.c
+++ b/src/modules/music-control/e_mod_main.c
@@ -60,6 +60,7 @@ _music_control(E_Object *obj EINA_UNUSED, const char *params)
 {
    E_Music_Control_Module_Context *ctxt = music_control_mod->data;
    EINA_SAFETY_ON_NULL_RETURN(music_control_mod->data);
+   EINA_SAFETY_ON_NULL_RETURN(params);
 
    if (!strcmp(params, "play"))
      media_player2_player_play_pause_call(ctxt->mpris2_player);

-- 


Reply via email to