Handle possible nulls.

This commit is contained in:
Huo Yaoyuan 2017-05-17 18:11:38 +08:00
parent b9b45493e6
commit 6c9505fa3a
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public Message(long id)
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