Check passing parameter is null 62/88962/1 accepted/tizen/common/20160923.160613 accepted/tizen/ivi/20160925.234149 accepted/tizen/mobile/20160925.234201 accepted/tizen/tv/20160925.234143 accepted/tizen/wearable/20160925.234155 submit/tizen/20160922.052623 submit/tizen/20160923.015118
authorWonnam Jang <wn.jang@samsung.com>
Wed, 21 Sep 2016 08:13:33 +0000 (17:13 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Wed, 21 Sep 2016 08:13:33 +0000 (17:13 +0900)
Change-Id: I90fb9d7f6aa835522f6f238c75850185d05289b2
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
src/vc_elm_core.c

index fd7c2d9..91f96dc 100644 (file)
@@ -252,6 +252,12 @@ Eina_Bool _recognize_command(const char *cmd, const char *param1, const char *pa
        const Eina_List *l;
        struct Wrapped_Command *wrapped;
        struct Wrapped_Command *found = NULL;
+
+       if (NULL == cmd) {
+               VC_ELM_LOG_ERR("Invalid parameter, cmd is null");
+               return EINA_FALSE;
+       }
+
        VC_ELM_LOG_INFO("Trying to recognize %s %s %s", cmd, param1, param2);
 
        EINA_LIST_FOREACH(g_wrapped_commands, l, wrapped) {