From ba1c61be7458b133f7db241cde7c0e937c86ecd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 4 Sep 2023 08:43:57 +0200 Subject: [PATCH] Please cherry-pick: - Mr. or Mrs. is a personal title, not a gender or sex --- .../beans/contact/AddressbookAdminContactWebRequestBean.java | 2 +- .../beans/user/AddressbookAdminUserWebRequestBean.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.5