- Mr. or Mrs. is a personal title, not a gender or sex
public void validateContactData () {
if (this.getPersonalTitle() == null) {
// Throw NPE again
- throw new NullPointerException("contactController.gender is null"); //NOI18N
+ throw new NullPointerException("contactController.personalTitle is null"); //NOI18N
} else if (this.getFirstName() == null) {
// ... and again
throw new NullPointerException("contactController.firstName is null"); //NOI18N
// Is empty
throw new IllegalArgumentException("userName is null"); //NOI18N
} else if (this.getContact() == null) {
- // No contact instance set, so test required fields: gender, first name and family name
+ // No contact instance set, so test required fields: personal title, first name and family name
this.adminContactController.validateContactData();
}