mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Fix potential null reference when attempting to highlight a message before overlay has been displayed
This commit is contained in:
parent
ae1e126837
commit
57fb8616b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user