From: Lukasz Bardeli Date: Fri, 3 Jul 2015 13:00:03 +0000 (+0200) Subject: [Account] fix for Account X-Git-Tag: submit/tizen/20150702.103311^2~1^2~14^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb2cf8e20f32ed731a25ad7f1f36c70e318b0033;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Account] fix for Account [Verification] Code compiles without error Change-Id: Ie6a91d4ea1f3a58693b9db3294257e8d25853bd4 Signed-off-by: Lukasz Bardeli --- diff --git a/src/account/account_manager.cc b/src/account/account_manager.cc index 0c7bb912..fba8f1d7 100755 --- a/src/account/account_manager.cc +++ b/src/account/account_manager.cc @@ -307,7 +307,7 @@ bool AccountManager::ConvertAccountToObject(account_h account, REPORT_ERROR(out, UnknownException(GetErrorMsg(ret))); return false; } - account_init["iconUri"] = picojson::value(icon_path); + account_init["iconUri"] = icon_path ? picojson::value(icon_path) : picojson::value(); ret = account_get_user_name(account, &user_name); if (ret != ACCOUNT_ERROR_NONE) { @@ -315,7 +315,7 @@ bool AccountManager::ConvertAccountToObject(account_h account, REPORT_ERROR(out, UnknownException(GetErrorMsg(ret))); return false; } - account_init["userName"] = picojson::value(user_name); + account_init["userName"] = user_name ? picojson::value(user_name) : picojson::value(); out["accountInitDict"] = picojson::value(account_init); return true;