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=5cf8a14763ae516ec4dae164db522c34c67021f2;p=pizzaservice-war.git Please cherry-pick: - Mr. or Mrs. is a personal title, not a gender or sex --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestBean.java index e786d168..c1a3f59c 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestBean.java @@ -1069,7 +1069,7 @@ public class PizzaAdminContactWebRequestBean extends BasePizzaBean implements Pi 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/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java index af896a4f..426833d4 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java @@ -223,7 +223,7 @@ public class PizzaAdminUserWebRequestBean extends BasePizzaBean implements Pizza // 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(); }