mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -05:00
Fix equals() method to work with all objects
This commit is contained in:
parent
6804ee04e3
commit
b6315b15b0
@ -20,7 +20,7 @@ public class FolderInfoHolder implements Comparable<FolderInfoHolder> {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
return this.name.equals(((FolderInfoHolder)o).name);
|
||||
return o instanceof FolderInfoHolder && name.equals(((FolderInfoHolder) o).name);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user