From 7a1d2d1e6e748950bbd7e201dd13bcb558958b6c 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 --- .../jjobs/beans/contact/JobsAdminContactWebRequestBean.java | 2 +- .../mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java index 4c5f84e0..ab307645 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java @@ -1133,7 +1133,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsBean implements Jobs 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/jjobs/beans/user/JobsAdminUserWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java index f518bf8f..e1f62b43 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java @@ -234,7 +234,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsBean implements JobsAdm // 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