]> git.mxchange.org Git - juser-core.git/commitdiff
gender was very incorrect, now I use "personal title" to mean Mr./Mrs.
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 13:38:03 +0000 (15:38 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 13:38:03 +0000 (15:38 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jusercore/model/user/UserUtils.java

index 4dac3a9086f4d5eaa04f0f8fa2dec87eb22581d2..29ddf52cad13d807652bc245579dc98f2215fd1a 100644 (file)
@@ -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
                }