mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 21:42:55 +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);
|
Debug.Assert(channel.Id == message.ChannelId);
|
||||||
|
|
||||||
if (currentChannel.Value.Id != channel.Id)
|
if (currentChannel.Value?.Id != channel.Id)
|
||||||
{
|
{
|
||||||
if (!channel.Joined.Value)
|
if (!channel.Joined.Value)
|
||||||
channel = channelManager.JoinChannel(channel);
|
channel = channelManager.JoinChannel(channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user