]> git.mxchange.org Git - addressbook-mailer-ejb.git/commitdiff
don't check for emailChangeId here because it is always NULL
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:31:37 +0000 (19:31 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:31:37 +0000 (19:31 +0100)
src/java/org/mxchange/jusercore/model/email_address/EmailChangeSessionBean.java

index cbda9e2162619e8c0e24e874a17198d1f7881db0..97d96b12648c250e02254b1b4e76acd3d106b1c1 100644 (file)
@@ -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