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

src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java
src/java/org/mxchange/jfinancials/beans/user/FinancialsAdminUserWebRequestBean.java

index 32011a4e98151fd0dc1422e0512cbabbcb61cb1c..b025b88592e472b9e1902e323632a8d79690179c 100644 (file)
@@ -1127,7 +1127,7 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsBean imp
        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 24f7159be7dfde20fcbeca28da748c9a36c8a066..068b2822aee8345bc51a7a470f23f8d07ee6039d 100644 (file)
@@ -228,7 +228,7 @@ public class FinancialsAdminUserWebRequestBean extends BaseFinancialsBean implem
                        // 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();
                }