[Account] - GetAccount without accountId test fixed
authorAndrzej Popowski <a.popowski@samsung.com>
Fri, 13 Feb 2015 15:13:54 +0000 (16:13 +0100)
committerAndrzej Popowski <a.popowski@samsung.com>
Fri, 13 Feb 2015 15:17:11 +0000 (16:17 +0100)
Change-Id: I6e39fed15562eb079050910d3de326c51b82b5e9
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/account/account_manager.cc

index 88610c8679525c5e5a7d89361c3e3f785821ba5d..b6fcc8aa7e3a03a4479e36befaaaf640fc39c801 100644 (file)
@@ -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;