- unsetting all phone numbers make them disconnected from the contact instance, better is to make them managed (merge)
throw new IllegalStateException(MessageFormat.format("contact.contactId={0} is not valid.", contact.getContactId())); //NOI18N
}
- // Remove all referenced phone numbers
- contact.setContactFaxNumber(null);
- contact.setContactLandLineNumber(null);
- contact.setContactMobileNumber(null);
-
// Merge cellphone, land-line and fix
Contact managedContact = this.mergeContactData(contact);