]> git.mxchange.org Git - juser-core.git/blobdiff - src/org/mxchange/jusercore/model/user/LoginUser.java
Continued:
[juser-core.git] / src / org / mxchange / jusercore / model / user / LoginUser.java
index cf17e5ffc424eb787223c5c7e2c52fbe26a41b38..d6de5bf9a24a69c44f20abb5ddfc61aa31665f14 100644 (file)
@@ -38,8 +38,8 @@ import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
 import javax.persistence.Transient;
 import org.mxchange.jcontacts.model.contact.Contact;
-import org.mxchange.jcontacts.model.utils.ContactUtils;
 import org.mxchange.jcontacts.model.contact.UserContact;
+import org.mxchange.jcontacts.model.utils.ContactUtils;
 import org.mxchange.jcoreutils.Comparables;
 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
@@ -221,8 +221,8 @@ public class LoginUser implements User {
                // Checkparameter and return 0 if equal
                if (null == user) {
                        // Should not happen
-                       throw new NullPointerException("user is null"); //NOI18N
-               } else if (user.equals(this)) {
+                       throw new NullPointerException("Parameter 'user' is null"); //NOI18N
+               } else if (Objects.equals(this, user)) {
                        // Same object
                        return 0;
                }