Core/Commands: Fix NULL dereference crash

Closes #15833

(cherry picked from commit abd4e2e0f1)
This commit is contained in:
jackpoz
2015-11-10 21:14:18 +01:00
committed by Carbenium
parent 61c7161a10
commit ec3bba64f0

View File

@@ -1015,7 +1015,7 @@ void ChatHandler::extractOptFirstArg(char* args, char** arg1, char** arg2)
char* ChatHandler::extractQuotedArg(char* args)
{
if (!*args)
if (!args || !*args)
return NULL;
if (*args == '"')