Fix a crash
This commit is contained in:
parent
fdec78fd61
commit
f8e22c4a9d
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue