Skip to content

Commit

Permalink
[SL-UP] Bugfix/matter shell crash nullptr (project-chip#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Nov 28, 2024
1 parent 9ff86c6 commit 97705e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/shell/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ CHIP_ERROR Engine::ExecCommand(int argc, char * argv[])
CHIP_ERROR retval = CHIP_ERROR_INVALID_ARGUMENT;

VerifyOrReturnError(argc > 0, retval);
VerifyOrReturnError(nullptr != argv, retval);

// Find the command
for (unsigned i = 0; i < _commandSetCount; i++)
{
Expand Down

0 comments on commit 97705e1

Please sign in to comment.