} 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
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
}