]> git.mxchange.org Git - juser-core.git/commitdiff
Don't do these checks on login phase as they are only available after login
authorRoland Häder <roland@mxchange.org>
Fri, 6 May 2016 11:12:41 +0000 (13:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 8 May 2016 21:01:47 +0000 (23:01 +0200)
src/org/mxchange/jusercore/container/login/UserLoginContainer.java

index 84df915b5b729bf0308152af77c7261bba1b0e01..f54a3ba0a4496e7e000c991b2d9d7a6d345b2af0 100644 (file)
@@ -16,7 +16,6 @@
  */
 package org.mxchange.jusercore.container.login;
 
-import java.text.MessageFormat;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -52,21 +51,6 @@ public class UserLoginContainer implements LoginContainer {
                if (null == user) {
                        // Throw NPE
                        throw new NullPointerException("user is null"); //NOI18N
-               } else if (user.getUserId() == null) {
-                       // Throw NPE again ..
-                       throw new NullPointerException("user.userId is null"); //NOI18N
-               } else if (user.getUserId() < 1) {
-                       // Invalid id number
-                       throw new IllegalArgumentException(MessageFormat.format("user.userId={0} is not valid", user.getUserId())); //NOI18N
-               } else if (user.getUserContact() == null) {
-                       // Throw NPE again ...
-                       throw new NullPointerException("user.userContact is null"); //NOI18N
-               } else if (user.getUserContact().getContactId() == null) {
-                       // Throw NPE again ...
-                       throw new NullPointerException("user.userContact.contactId is null"); //NOI18N
-               } else if (user.getUserContact().getContactId() < 1) {
-                       // Invalid id number
-                       throw new IllegalArgumentException(MessageFormat.format("user.userContact.contactId={0} is not valid", user.getUserContact().getContactId())); //NOI18N
                } else if (null == userPassword) {
                        // Throw NPE again
                        throw new NullPointerException("userPassword is null"); //NOI18N