summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIckhee Woo <ickhee.woo@samsung.com>2016-09-22 13:23:45 +0900
committerIckhee Woo <ickhee.woo@samsung.com>2016-09-22 13:32:31 +0900
commit7cbb1d09116a5ae3015055eacd2bf754ba22910f (patch)
tree6456df27bfd298fbeeb5edb1d4ed5e7bfc2ec7d6
parentd65761a06e7a7731c7868810e4a4d1976903829f (diff)
downloadmy-account-7cbb1d09116a5ae3015055eacd2bf754ba22910f.tar.gz
my-account-7cbb1d09116a5ae3015055eacd2bf754ba22910f.tar.bz2
my-account-7cbb1d09116a5ae3015055eacd2bf754ba22910f.zip
Change-Id: Id60572778bc355caa59ff20707b22cb4f0a03ca9 Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
-rwxr-xr-xwearable/app/src/my-account-view-main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wearable/app/src/my-account-view-main.c b/wearable/app/src/my-account-view-main.c
index d295f36..a1e64e4 100755
--- a/wearable/app/src/my-account-view-main.c
+++ b/wearable/app/src/my-account-view-main.c
@@ -661,8 +661,6 @@ static bool __myaccount_get_account_app_info_cb(account_type_h account_type, voi
ret = account_type_get_label_by_locale(account_type, "en_GB", &provider_name);
else
ret = account_type_get_label_by_locale(account_type, ad->current_language, &provider_name);
- } else {
- return FALSE;
}
if (ret != ACCOUNT_ERROR_NONE) {
@@ -691,6 +689,9 @@ static bool __myaccount_get_account_app_info_cb(account_type_h account_type, voi
return TRUE;
}
+ if (ad == NULL)
+ return FALSE;
+
ad->account_app_list = g_list_append(ad->account_app_list, (void*)app_info);
return TRUE;