]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 19:51:54 +0000 (21:51 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 19:54:23 +0000 (21:54 +0200)
- no gender, there is "personal title" for Mr./Mrs.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java

index f433fb979f4be344a76cc76cf7626d16100715ea..7ecce709c6170cfe07a5210e45b3da67dd595029 100644 (file)
@@ -627,7 +627,7 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS
                } 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)) {