summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-03-20 11:43:19 (GMT)
committerHwankyu Jhun <h.jhun@samsung.com>2017-03-20 11:43:19 (GMT)
commit94354cefe519e82f81dc73574d687e65da34ec00 (patch)
treeb7af139d74b27184310381a3a4f01c59f6a92f73
parentc4b76b61ecda8a0b119269ac2e8d187a87b1212f (diff)
downloadapplication-94354cefe519e82f81dc73574d687e65da34ec00.zip
application-94354cefe519e82f81dc73574d687e65da34ec00.tar.gz
application-94354cefe519e82f81dc73574d687e65da34ec00.tar.bz2
Add an exception handling about argsrefs/changes/96/119896/1
The argc and argv can be NULL pointer. Change-Id: Ibc9408f4b83a8ada87e0b3a1e67a67da1143cb8e Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-xsrc/app_main_legacy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app_main_legacy.c b/src/app_main_legacy.c
index daf6a58..e803535 100755
--- a/src/app_main_legacy.c
+++ b/src/app_main_legacy.c
@@ -164,6 +164,9 @@ int app_main(int argc, char **argv, app_event_callback_s *callback, void *data)
int app_efl_main(int *argc, char ***argv, app_event_callback_s *callback, void *user_data)
{
+ if (argc == NULL || argv == NULL)
+ return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
+
return app_main(*argc, *argv, callback, user_data);
}