From 972f8e5637885cc5487e3d846eba9f9e1501c0ba Mon Sep 17 00:00:00 2001 From: hydrant Date: Sat, 3 Apr 2021 23:31:49 +0200 Subject: [PATCH] fix --- ReallifeGamemode.Server/Services/ChatService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Services/ChatService.cs b/ReallifeGamemode.Server/Services/ChatService.cs index d63d16c2..7ee17107 100644 --- a/ReallifeGamemode.Server/Services/ChatService.cs +++ b/ReallifeGamemode.Server/Services/ChatService.cs @@ -57,7 +57,7 @@ namespace ReallifeGamemode.Server.Services foreach (Player c in NAPI.Pools.GetAllPlayers()) { User user = c.GetUser(); - Faction f = user.Faction; + Faction f = user?.Faction; if (f != null) { if (factions.Find(fT => fT.Id == f.Id) != null)