contacts_list_destroy(recordList, true);
+ if (is_first_condition) {
+ ERR("ADDRESSBOOK NOT FOUND");
+ contacts_filter_destroy(filter);
+ contacts_query_destroy(query);
+ return NULL;
+ }
+
status = contacts_query_set_filter(query, filter);
if (status != CONTACTS_ERROR_NONE)
ERR("Could not Apply Filter");
}
INFO("Limit is = %d and offset is =%d\n", limit, offset);
+ if (query == NULL) {
+ ERR("Query is NULL");
+ return;
+ }
/* When limit is passed as ZERO to contacts_db_get_records_with_query
* API then this API will provide all available contacts in its database
* (unrestricted). Now consider a case when client requests for
g_free(name);
}
+ if (query == NULL) {
+ ERR("Query is NULL");
+ return;
+ }
+
status = contacts_db_get_records_with_query(query, -1, -1,
&record_list);