Fix a crash
This commit is contained in:
parent
fdec78fd61
commit
f8e22c4a9d
|
@ -87,10 +87,11 @@ public class Attachment implements Serializable {
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(@Nullable Object obj) {
|
public boolean equals(@Nullable Object obj) {
|
||||||
boolean same = false;
|
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);
|
same = this.id.equals(((Attachment) obj).id);
|
||||||
}
|
|
||||||
return same;
|
return same;
|
||||||
|
} else return super.equals(obj);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue