From: Roland Haeder Date: Sat, 12 Mar 2016 18:31:33 +0000 (+0100) Subject: don't check for emailChangeId here because it is always NULL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d431777b86315316341018fbfac4a5a299e8a35f;p=jjobs-ejb.git don't check for emailChangeId here because it is always NULL --- diff --git a/src/java/org/mxchange/jusercore/model/email_address/EmailChangeSessionBean.java b/src/java/org/mxchange/jusercore/model/email_address/EmailChangeSessionBean.java index 8623c6f..fa060d1 100644 --- a/src/java/org/mxchange/jusercore/model/email_address/EmailChangeSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/email_address/EmailChangeSessionBean.java @@ -79,12 +79,6 @@ public class EmailChangeSessionBean extends BaseDatabaseBean implements EmailCha if (null == emailAddress) { // Abort here throw new NullPointerException("emailAddress is null"); //NOI18N - } else if (emailAddress.getEmailChangeId() == null) { - // Throw NPE again - throw new NullPointerException("emailAddress.emailChangeId is null"); //NOI18N - } else if (emailAddress.getEmailChangeId() < 1) { - // Not valid - throw new IllegalArgumentException(MessageFormat.format("emailAddress.emailChangeId={0} is not valid.", emailAddress.getEmailChangeId())); //NOI18N } else if (!this.userBean.ifUserExists(emailAddress.getEmailChangeUser())) { // User does not exist throw new PersistenceException(MessageFormat.format("Email change with id {0} does not exist.", emailAddress.getEmailChangeId())); //NOI18N