Skip to content

Commit 029ed45

Browse files
ksenonadvY_Less
authored and
Y_Less
committed
sanity check. fix format.
1 parent 6c7faef commit 029ed45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Server/Components/Console/console_impl.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ class ConsoleComponent final : public IConsoleComponent, public CoreEventHandler
8585
StringView command = trim(packet.cmd);
8686
PlayerConsoleData* pdata = queryExtension<PlayerConsoleData>(peer);
8787

88+
if (pdata == nullptr)
89+
{
90+
return false;
91+
}
92+
8893
if (pdata->hasConsoleAccess())
8994
{
9095
if (command.size() < 1)

0 commit comments

Comments
 (0)