From 6c9505fa3a053cc4fc607f366a30d1b94fe3600f Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Wed, 17 May 2017 18:11:38 +0800 Subject: [PATCH] Handle possible nulls. --- osu.Game/Online/Chat/Message.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Online/Chat/Message.cs b/osu.Game/Online/Chat/Message.cs index 8c0cb043c4..ed76ef248e 100644 --- a/osu.Game/Online/Chat/Message.cs +++ b/osu.Game/Online/Chat/Message.cs @@ -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