1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:47:24 +08:00

Add null check to ScrollToAndHighlightMessage

This commit is contained in:
Craftplacer 2019-12-16 03:27:19 +01:00
parent 997b51b1f8
commit 1a1253a4aa

View File

@ -239,6 +239,9 @@ namespace osu.Game.Overlays.Chat
public void ScrollToAndHighlightMessage(Message message)
{
if (message is null)
return;
var chatLine = findChatLine(message);
scroll.ScrollTo(chatLine);
chatLine.FlashColour(HighlightColour, 5000, Easing.InExpo);