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

Small fix to the chat overlay to prevent crashing on the test

This commit is contained in:
Poliwrath 2017-04-11 21:35:49 -04:00
parent 34cfeb77e8
commit dffdb100ab

View File

@ -93,7 +93,7 @@ namespace osu.Game.Overlays
{
var postText = sender.Text;
if (!string.IsNullOrEmpty(postText))
if (!string.IsNullOrEmpty(postText) && api.LocalUser.Value != null)
{
//todo: actually send to server
careChannels.FirstOrDefault()?.AddNewMessages(new[]