Fix a crash

This commit is contained in:
Thomas 2023-01-19 16:54:39 +01:00
parent fdec78fd61
commit f8e22c4a9d
1 changed files with 4 additions and 3 deletions

View File

@ -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;
return same;
} else return super.equals(obj);
}
}