mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Ticket #266: Fixed equals() logic error - if both identifiers are false the two objects should be equal
This commit is contained in:
@@ -111,7 +111,7 @@ public class ConnectionPermission
|
|||||||
// If null identifier, equality depends on whether other identifier
|
// If null identifier, equality depends on whether other identifier
|
||||||
// is null
|
// is null
|
||||||
if (identifier == null)
|
if (identifier == null)
|
||||||
return other.identifier != null;
|
return other.identifier == null;
|
||||||
|
|
||||||
// Otherwise, equality depends entirely on identifier
|
// Otherwise, equality depends entirely on identifier
|
||||||
return identifier.equals(other.identifier);
|
return identifier.equals(other.identifier);
|
||||||
|
Reference in New Issue
Block a user