From: Roland Häder Date: Mon, 4 Sep 2023 06:43:57 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba1c61be7458b133f7db241cde7c0e937c86ecd7;p=addressbook-war.git Please cherry-pick: - Mr. or Mrs. is a personal title, not a gender or sex --- diff --git a/src/java/org/mxchange/addressbook/beans/contact/AddressbookAdminContactWebRequestBean.java b/src/java/org/mxchange/addressbook/beans/contact/AddressbookAdminContactWebRequestBean.java index 93af33a2..abbbd760 100644 --- a/src/java/org/mxchange/addressbook/beans/contact/AddressbookAdminContactWebRequestBean.java +++ b/src/java/org/mxchange/addressbook/beans/contact/AddressbookAdminContactWebRequestBean.java @@ -1127,7 +1127,7 @@ public class AddressbookAdminContactWebRequestBean extends BaseAddressbookBean i 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 diff --git a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java index daf3279a..9a6ba53d 100644 --- a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java @@ -228,7 +228,7 @@ public class AddressbookAdminUserWebRequestBean extends BaseAddressbookBean impl // 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(); }