From 4ccc8f6c02c14ae8c64132f48b37720d9184c7bf Mon Sep 17 00:00:00 2001 From: Andrzej Popowski Date: Fri, 13 Feb 2015 16:13:54 +0100 Subject: [PATCH] [Account] - GetAccount without accountId test fixed Change-Id: I6e39fed15562eb079050910d3de326c51b82b5e9 Signed-off-by: Andrzej Popowski --- src/account/account_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/account/account_manager.cc b/src/account/account_manager.cc index 88610c8..b6fcc8a 100644 --- a/src/account/account_manager.cc +++ b/src/account/account_manager.cc @@ -182,7 +182,7 @@ void AccountManager::GetAccountInfo(int account_id, picojson::object& out) { } ret = account_query_account_by_account_id(account_id, &account); - if (ACCOUNT_ERROR_RECORD_NOT_FOUND == ret) { + if (ACCOUNT_ERROR_RECORD_NOT_FOUND == ret || ACCOUNT_ERROR_INVALID_PARAMETER == ret) { out["status"] = picojson::value("success"); out["result"] = picojson::value(); return; -- 2.7.4