summaryrefslogtreecommitdiff
path: root/app_common/app_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'app_common/app_event.c')
-rwxr-xr-xapp_common/app_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app_common/app_event.c b/app_common/app_event.c
index fe32e89..d64227a 100755
--- a/app_common/app_event.c
+++ b/app_common/app_event.c
@@ -125,7 +125,7 @@ int app_event_get_low_battery_status(app_event_info_h event_info, app_event_low_
int app_event_get_language(app_event_info_h event_info, char **lang)
{
- if (event_info == NULL || lang == NULL)
+ if (event_info == NULL || event_info->value == NULL || lang == NULL)
return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "null parameter");
if (event_info->type != APP_EVENT_LANGUAGE_CHANGED)
@@ -138,7 +138,7 @@ int app_event_get_language(app_event_info_h event_info, char **lang)
int app_event_get_region_format(app_event_info_h event_info, char **region)
{
- if (event_info == NULL || region == NULL)
+ if (event_info == NULL || event_info->value == NULL || region == NULL)
return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "null parameter");
if (event_info->type != APP_EVENT_REGION_FORMAT_CHANGED)