diff --git a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs index e7eff5123f..525867e271 100644 --- a/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs @@ -72,7 +72,7 @@ namespace OpenRA.Mods.Common.Server public bool InterpretCommand(S server, Connection conn, Session.Client client, string cmd) { - if (!ValidateCommand(server, conn, client, cmd)) + if (server == null || conn == null || client == null || !ValidateCommand(server, conn, client, cmd)) return false; var dict = new Dictionary>