summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;