}
rpc_port_proxy_list_string_h app_id_list;
- rpc_port_proxy_list_string_create(&app_id_list);
+ ret = rpc_port_proxy_list_string_create(&app_id_list);
+ if (ret != RPC_PORT_ERROR_NONE) {
+ LOGW("[ERROR] Failed to create string list. err = %d", ret);
+ return AUTOFILL_ERROR_OPERATION_FAILED;
+ }
+
ret = rpc_port_proxy_AutofillManagerPort_invoke_get_autofill_service_list(amh->rpc_h, &app_id_list);
if (ret == false) {
LOGW("[ERROR] Failed to send rpc port. err = %d", ret);
rpc_port_proxy_list_string_destroy(app_id_list);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
- rpc_port_proxy_list_string_foreach(app_id_list, callback, user_data);
+ ret = rpc_port_proxy_list_string_foreach(app_id_list, callback, user_data);
+ if (ret != RPC_PORT_ERROR_NONE) {
+ LOGW("[ERROR] Failed to get list. err = %d", ret);
+ return AUTOFILL_ERROR_OPERATION_FAILED;
+ }
rpc_port_proxy_list_string_destroy(app_id_list);