Core/Commands: Fix NULL dereference crash

Closes #15833

(cherry picked from commit abd4e2e0f1)

Conflicts:
	src/server/game/Chat/Chat.cpp
This commit is contained in:
jackpoz authored and ariel- committed 2016-01-11 01:51:49 -03:00
1 parent 5ebfe5a297
commit 1a5b0067a3
1 file changed
+1 -1
+1 -1
View File
@@ -1184,7 +1184,7 @@ void ChatHandler::extractOptFirstArg(char* args, char** arg1, char** arg2)
char* ChatHandler::extractQuotedArg(char* args)
{
if (!*args)
if (!args || !*args)
return nullptr;
if (*args == '"')