From: Roland Häder Date: Sat, 10 Jun 2017 19:51:54 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3c066602922e0807b03dd4b17a681d296f72701;p=jjobs-ejb.git Please cherry-pick: - no gender, there is "personal title" for Mr./Mrs. Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java index 2ba626b..66b4c50 100644 --- a/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/JobsUserSessionBean.java @@ -627,7 +627,7 @@ public class JobsUserSessionBean extends BaseJobsDatabaseBean implements UserSes } else if (user.getUserContact().getContactId() < 1) { // Invalid id throw new IllegalArgumentException(MessageFormat.format("user.userContact.contactId={0} is invalid", user.getUserContact().getContactId())); //NOI18N - } else if (user.getUserContact().getContactGender() == null) { + } else if (user.getUserContact().getContactPersonalTitle() == null) { // Throw NPE again throw new NullPointerException("user.userContact.contactGender is null"); //NOI18N } else if (!this.ifUserExists(user)) {