From 50f9724e344b48c47be7ad205ed5cac35ac652db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 6 Jun 2015 13:46:55 +0200 Subject: [PATCH] fix a NullReferenceException --- OpenRA.Mods.Common/ServerTraits/LobbyCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>