From ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Wed, 8 Jun 2016 17:22:06 +0900 Subject: [PATCH] add null check in ug_disable_effect Change-Id: I468e972f1fd82f2055656f0496e65d29b5d6c346 Signed-off-by: Jiwoong Im --- src/ug.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ug.c b/src/ug.c index 2090c58..2f0c5a6 100644 --- a/src/ug.c +++ b/src/ug.c @@ -357,6 +357,10 @@ UG_API int ug_send_message(ui_gadget_h ug, app_control_h msg) UG_API int ug_disable_effect(ui_gadget_h ug) { + if (!ug) { + _ERR("ug input param is null"); + return -1; + } if (ug->layout_state != UG_LAYOUT_INIT) { _ERR("ug_disable_effect() failed: ug has already been shown"); return -1; -- 2.7.4