]> git.mxchange.org Git - addressbook-core.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 17:41:02 +0000 (19:41 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2017 19:07:52 +0000 (21:07 +0200)
- it is "personal title" for Mr./Mrs. now

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java

index 4f05c776cc94c976ffc65bda255eade0d46250c1..387629c0830a9ea6d229b87779bde0426ac7f1fa 100644 (file)
@@ -485,9 +485,9 @@ public abstract class BaseAddressbookDatabaseBean extends BaseDatabaseBean {
                } 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
                }
 
                // Prepare mail wrapper