Correct equals(Object) method handling if both objects have null getDetails().
This commit is contained in:
parent
78df09db8a
commit
77be0009ad
|
@ -78,6 +78,10 @@ public class AnonymousAuthenticationToken extends AbstractAuthenticationToken
|
|||
return false;
|
||||
}
|
||||
|
||||
if ((this.details == null) && (test.getDetails() == null)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((this.details == null) && (test.getDetails() != null)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue