[Internal: Bug fixed ] When getting profile_info from profile_id that don't exists...
authorsanghyuk Ko <sanghyuk.ko@samsung.com>
Mon, 22 Jul 2013 10:17:06 +0000 (19:17 +0900)
committersanghyuk Ko <sanghyuk.ko@samsung.com>
Mon, 22 Jul 2013 10:17:06 +0000 (19:17 +0900)
[Problem]
-
[Cause]
-
[Solution]
-

Change-Id: I1844487899eb42237afde9a7e3ca23dc49bd290f

src/agent/service-engine/se_storage.c

index 42efcff..21223bf 100755 (executable)
@@ -462,6 +462,12 @@ bool get_profile_data(int account_id, char **profile_dir_name, char **profile_na
                goto error;
        }
 
+       if ((fw_account->account_id == 0)) {
+               _DEBUG_ERROR("Profile don't exists!!, account_id: [%d]", account_id);
+               err = SE_INTERNAL_ERROR;
+               goto error;
+       }
+
        if (fw_account->email != NULL)
                *id = strdup(fw_account->email);