unsigned int id = ctsvc_client_get_pid();
ret = ctsvc_client_handle_get_p_with_id(id, &contact);
- RETV_IF(CONTACTS_ERROR_NO_DATA == ret, CONTACTS_ERROR_NONE);
+ RETV_IF(NULL == contact, CONTACTS_ERROR_DB);
RETVM_IF(CONTACTS_ERROR_NONE != ret, ret, "ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
ret = ctsvc_client_disconnect(contact);
unsigned int id = ctsvc_client_get_tid();
ret = ctsvc_client_handle_get_p_with_id(id, &contact);
- RETV_IF(CONTACTS_ERROR_NO_DATA == ret, CONTACTS_ERROR_NONE);
+ RETV_IF(NULL == contact, CONTACTS_ERROR_DB);
RETVM_IF(CONTACTS_ERROR_NONE != ret, ret, "ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
ret = ctsvc_client_disconnect_on_thread(contact);