mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Handle possible nulls.
This commit is contained in:
parent
b9b45493e6
commit
6c9505fa3a
@ -44,7 +44,7 @@ namespace osu.Game.Online.Chat
|
||||
|
||||
public int CompareTo(Message other) => Id.CompareTo(other.Id);
|
||||
|
||||
public bool Equals(Message other) => Id == other.Id;
|
||||
public bool Equals(Message other) => Id == other?.Id;
|
||||
}
|
||||
|
||||
public enum TargetType
|
||||
|
Loading…
Reference in New Issue
Block a user