mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Ticket #267: Fixed equals() logic error - if both identifiers are false the two objects should be equal
This commit is contained in:
@@ -106,7 +106,7 @@ public class UserPermission implements ObjectPermission<String> {
|
||||
// If null identifier, equality depends on whether other identifier
|
||||
// is null
|
||||
if (identifier == null)
|
||||
return other.identifier != null;
|
||||
return other.identifier == null;
|
||||
|
||||
// Otherwise, equality depends entirely on identifier
|
||||
return identifier.equals(other.identifier);
|
||||
|
Reference in New Issue
Block a user