diff --git a/core/src/main/java/org/acegisecurity/userdetails/User.java b/core/src/main/java/org/acegisecurity/userdetails/User.java index bc1eb2e384..ba8ac3ef30 100644 --- a/core/src/main/java/org/acegisecurity/userdetails/User.java +++ b/core/src/main/java/org/acegisecurity/userdetails/User.java @@ -1,4 +1,4 @@ -/* Copyright 2004 Acegi Technology Pty Limited +/* Copyright 2004, 2005 Acegi Technology Pty Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -93,7 +93,7 @@ public class User implements UserDetails { boolean accountNonExpired, boolean credentialsNonExpired, GrantedAuthority[] authorities) throws IllegalArgumentException { if (((username == null) || "".equals(username)) || (password == null) - || "".equals(password) || (authorities == null)) { + || (authorities == null)) { throw new IllegalArgumentException( "Cannot pass null or empty values to constructor"); } diff --git a/doc/xdocs/changes.xml b/doc/xdocs/changes.xml index 18ec9067be..28230ab8ed 100644 --- a/doc/xdocs/changes.xml +++ b/doc/xdocs/changes.xml @@ -3,7 +3,7 @@