From: Roland Häder Date: Fri, 6 May 2016 11:12:41 +0000 (+0200) Subject: Don't do these checks on login phase as they are only available after login X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e46f1eb82bf5975b9be624643ffaf72a4f75f81d;p=juser-core.git Don't do these checks on login phase as they are only available after login --- diff --git a/src/org/mxchange/jusercore/container/login/UserLoginContainer.java b/src/org/mxchange/jusercore/container/login/UserLoginContainer.java index 84df915..f54a3ba 100644 --- a/src/org/mxchange/jusercore/container/login/UserLoginContainer.java +++ b/src/org/mxchange/jusercore/container/login/UserLoginContainer.java @@ -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