From: Roland Häder Date: Sat, 10 Jun 2017 13:38:03 +0000 (+0200) Subject: gender was very incorrect, now I use "personal title" to mean Mr./Mrs. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4eef110fc7a16fbe69da8a67cc3c4fdb1c219552;p=juser-core.git gender was very incorrect, now I use "personal title" to mean Mr./Mrs. Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jusercore/model/user/UserUtils.java b/src/org/mxchange/jusercore/model/user/UserUtils.java index 4dac3a9..29ddf52 100644 --- a/src/org/mxchange/jusercore/model/user/UserUtils.java +++ b/src/org/mxchange/jusercore/model/user/UserUtils.java @@ -349,9 +349,9 @@ public class UserUtils implements Serializable { } 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 + throw new NullPointerException("user.userContact.contactPersonalTitle is null"); //NOI18N } // Init properties list @@ -388,7 +388,7 @@ public class UserUtils implements Serializable { properties.setProperty("userAccountStatus", user.getUserAccountStatus().toString()); //NOI18N // - Contact data - properties.setProperty("contactGender", user.getUserContact().getContactGender().toString()); //NOI18N + properties.setProperty("contactPersonalTitle", user.getUserContact().getContactPersonalTitle().toString()); //NOI18N if (user.getUserContact().getContactTitle() != null) { properties.setProperty("contactTitle", user.getUserContact().getContactTitle()); //NOI18N }