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)