1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:42:54 +08:00

Fix potential null reference when attempting to highlight a message before overlay has been displayed

This commit is contained in:
Dean Herbert 2022-04-09 00:31:00 +09:00
parent ae1e126837
commit 57fb8616b8

View File

@ -317,7 +317,7 @@ namespace osu.Game.Overlays
Debug.Assert(channel.Id == message.ChannelId);
if (currentChannel.Value.Id != channel.Id)
if (currentChannel.Value?.Id != channel.Id)
{
if (!channel.Joined.Value)
channel = channelManager.JoinChannel(channel);