fix a NullReferenceException

This commit is contained in:
Matthias Mailänder
2015-06-06 13:46:55 +02:00
parent 1651bd817b
commit 50f9724e34

View File

@@ -72,7 +72,7 @@ namespace OpenRA.Mods.Common.Server
public bool InterpretCommand(S server, Connection conn, Session.Client client, string cmd) 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; return false;
var dict = new Dictionary<string, Func<string, bool>> var dict = new Dictionary<string, Func<string, bool>>