From 6bd51b32b47919a69a096c09ff8eac76c8bbe477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Sch=C3=BCrz?= Date: Wed, 4 Oct 2023 08:35:45 +0200 Subject: [PATCH] Make resolved `multiplayerClient` field nullable --- osu.Game/Users/UserPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Users/UserPanel.cs b/osu.Game/Users/UserPanel.cs index 29a6c65555..98b306e264 100644 --- a/osu.Game/Users/UserPanel.cs +++ b/osu.Game/Users/UserPanel.cs @@ -64,7 +64,7 @@ namespace osu.Game.Users protected OsuColour Colours { get; private set; } = null!; [Resolved] - private MultiplayerClient multiplayerClient { get; set; } = null!; + private MultiplayerClient? multiplayerClient { get; set; } [BackgroundDependencyLoader] private void load() @@ -124,7 +124,7 @@ namespace osu.Game.Users if ( User.IsOnline && - multiplayerClient.Room != null && + multiplayerClient?.Room != null && multiplayerClient.Room.Users.All(u => u.UserID != User.Id) ) {