char *value = NULL;
autofill_hint_e autofill_hint;
bool sensitive_data;
+ unsigned int save_item_count = 0;
if (!ah || !vi) {
LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
+ save_item_count = eina_list_count(vi->autofill_save_item_list);
+
+ if (save_item_count == 0) {
+ LOGE("[ERROR] No save item in save view. Please check whether adding save item by calling autofill_save_view_info_add_item() or not");
+ return AUTOFILL_ERROR_OPERATION_FAILED;
+ }
+
rpc_port_autofill_save_view_info_create(&vih);
rpc_port_autofill_save_view_info_set_view_id(vih, vi->view_id);
rpc_port_autofill_save_view_info_set_view_title(vih, vi->view_title);