]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 4 Sep 2023 06:43:57 +0000 (08:43 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 4 Sep 2023 06:46:13 +0000 (08:46 +0200)
- Mr. or Mrs. is a personal title, not a gender or sex

src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestBean.java
src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java

index e786d16849bcc9e34bccf823aa2011917d4b5270..c1a3f59cb3ccd73514b5a9b9a397e79b8673f090 100644 (file)
@@ -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
index af896a4f7370edde84581381ae23be8a771e9b93..426833d4811e3b1e2f0347ab06c8f82ea9aeae5d 100644 (file)
@@ -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();
                }