]> git.mxchange.org Git - addressbook-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:09 +0000 (08:46 +0200)
- Mr. or Mrs. is a personal title, not a gender or sex

src/java/org/mxchange/addressbook/beans/contact/AddressbookAdminContactWebRequestBean.java
src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java

index 93af33a20247204eecf8901211404dc6af2253f6..abbbd7600066188e68c2c9a52f4495d5c5a14721 100644 (file)
@@ -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
index daf3279a98b0b58f16006aa1b4c9c6daace738f1..9a6ba53db8bcbb6f5197a78f3edd01cf152f13fe 100644 (file)
@@ -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();
                }