forked from mirrors/Fedilab
Fix a crash
This commit is contained in:
parent
fdec78fd61
commit
f8e22c4a9d
1 changed files with 4 additions and 3 deletions
|
@ -87,10 +87,11 @@ public class Attachment implements Serializable {
|
|||
@Override
|
||||
public boolean equals(@Nullable Object obj) {
|
||||
boolean same = false;
|
||||
if (obj instanceof Attachment) {
|
||||
if (obj instanceof Attachment && ((Attachment) obj).id != null && this.id != null) {
|
||||
same = this.id.equals(((Attachment) obj).id);
|
||||
}
|
||||
return same;
|
||||
} else return super.equals(obj);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue