diff options
-rw-r--r-- | client/ug-client.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/client/ug-client.c b/client/ug-client.c index d5fbac3..eaac938 100644 --- a/client/ug-client.c +++ b/client/ug-client.c @@ -164,8 +164,15 @@ void _ug_client_result_cb(ui_gadget_h ug, app_control_h reply, void *priv) char* value = NULL; int result; - if (!ug || !priv) + if (!ug) { + LOGE("ug is null"); + return; + } + + if (!priv) { + LOGE("appdata is null"); return; + } ret = app_control_get_extra_data(reply, UG_APP_CONTROL_DATA_RESULT, &value); if ((ret == APP_CONTROL_ERROR_NONE) && (value)) { @@ -177,10 +184,6 @@ void _ug_client_result_cb(ui_gadget_h ug, app_control_h reply, void *priv) } ad = priv; - if (!ad) { - LOGE("appdata is null"); - return; - } ret = app_control_reply_to_launch_request(reply, ad->request, (app_control_result_e)result); if (ret != APP_CONTROL_ERROR_NONE) |