From: Roland Häder Date: Sat, 10 Jun 2017 17:41:02 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9c514ea3d83ff4f544b9ebf43a3268089a4f6fa4;p=pizzaservice-core.git Please cherry-pick: - it is "personal title" for Mr./Mrs. now Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java b/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java index d872215..3879404 100644 --- a/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java +++ b/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java @@ -485,9 +485,9 @@ public abstract class BasePizzaDatabaseBean 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