Skip to content

Commit

Permalink
Merge pull request #88 from autowp/master
Browse files Browse the repository at this point in the history
Prevent fatal error when processing command.
  • Loading branch information
irazasyed committed Dec 23, 2015
2 parents d4091c8 + 0e0ecaa commit 0ca3d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api.php
Expand Up @@ -869,7 +869,7 @@ protected function processCommand(Update $update)
{
$message = $update->getMessage();

if ($message->has('text')) {
if ($message !== null && $message->has('text')) {
$this->getCommandBus()->handler($message->getText(), $update);
}
}
Expand Down

0 comments on commit 0ca3d37

Please sign in to comment.