From: Andrzej Popowski Date: Fri, 13 Feb 2015 15:26:20 +0000 (+0100) Subject: [Account] Test AccountManager_getProvider_without_applicationId fixed X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~439 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89fbe2731aa41a49c4892ba10b51624a85a41d7f;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Account] Test AccountManager_getProvider_without_applicationId fixed Change-Id: Iae844d89a95797c107b6b79bb5043efaf46a07dc Signed-off-by: Andrzej Popowski --- diff --git a/src/account/account_manager.cc b/src/account/account_manager.cc index b6fcc8aa..73164b23 100644 --- a/src/account/account_manager.cc +++ b/src/account/account_manager.cc @@ -222,7 +222,11 @@ bool AccountManager::GetProviderInfo(const std::string& provider_id, } ret = account_type_query_by_app_id(provider_id.c_str(), &provider); - if (ret != ACCOUNT_ERROR_NONE) { + if (ACCOUNT_ERROR_RECORD_NOT_FOUND == ret || ACCOUNT_ERROR_INVALID_PARAMETER == ret) { + out["status"] = picojson::value("success"); + out["result"] = picojson::value(); + return true; + } else if (ret != ACCOUNT_ERROR_NONE) { LoggerE("Failed to get provider info"); REPORT_ERROR(out, UnknownException(GetErrorMsg(ret))); return false;