Fix bug in Recording.equals

This commit is contained in:
0xb00bface 2020-10-17 17:28:04 +02:00
parent f7775b4671
commit 66ba857b82
1 changed files with 4 additions and 4 deletions

View File

@ -232,13 +232,13 @@ public class Recording implements Serializable {
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
if (!(obj instanceof Recording))
return false;
Recording other = (Recording) obj;
if (id == null) {
if (other.id != null)
if (getId() == null) {
if (other.getId() != null)
return false;
} else if (!id.equals(other.id))
} else if (!getId().equals(other.getId()))
return false;
return true;
}