diff --git a/k9mail/src/main/java/com/fsck/k9/activity/FolderInfoHolder.java b/k9mail/src/main/java/com/fsck/k9/activity/FolderInfoHolder.java index 67b3a87ad..6ee078111 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/FolderInfoHolder.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/FolderInfoHolder.java @@ -20,7 +20,7 @@ public class FolderInfoHolder implements Comparable { @Override public boolean equals(Object o) { - return this.name.equals(((FolderInfoHolder)o).name); + return o instanceof FolderInfoHolder && name.equals(((FolderInfoHolder) o).name); } @Override