Fix a crash

This commit is contained in:
Thomas 2023-01-19 16:54:39 +01:00
parent fdec78fd61
commit f8e22c4a9d

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