diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2016-06-08 17:22:06 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2016-06-08 17:24:08 +0900 |
commit | ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b (patch) | |
tree | 67faba5a37ad876e69f4c025fafdc63e92215c2e | |
parent | 2de9503e18a3566e6ce23cf3407508341665dc0b (diff) | |
download | ui-gadget-1-ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b.tar.gz ui-gadget-1-ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b.tar.bz2 ui-gadget-1-ba89860cfd8b79555ae4d5e5e9f8ad41cf11356b.zip |
add null check in ug_disable_effectsubmit/tizen/20160608.045259accepted/tizen/wearable/20160609.090138accepted/tizen/tv/20160609.090223accepted/tizen/mobile/20160609.090120accepted/tizen/ivi/20160609.090150accepted/tizen/common/20160610.175824
Change-Id: I468e972f1fd82f2055656f0496e65d29b5d6c346
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | src/ug.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |