summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2016-06-08 08:22:06 (GMT)
committerJiwoong Im <jiwoong.im@samsung.com>2016-06-08 08:24:08 (GMT)
commitba89860cfd8b79555ae4d5e5e9f8ad41cf11356b (patch)
tree67faba5a37ad876e69f4c025fafdc63e92215c2e
parent2de9503e18a3566e6ce23cf3407508341665dc0b (diff)
downloadui-gadget-1-ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b.zip
ui-gadget-1-ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b.tar.gz
ui-gadget-1-ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b.tar.bz2
Change-Id: I468e972f1fd82f2055656f0496e65d29b5d6c346 Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r--src/ug.c4
1 files changed, 4 insertions, 0 deletions
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;