1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 03:23:02 +08:00

Merge pull request #620 from Poliwrath/master

Small fix to the chat overlay to prevent crashing on the test
This commit is contained in:
Dean Herbert 2017-04-12 10:45:21 +09:00 committed by GitHub
commit ca1fb81ff5

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[]