Skip to content

Commit ec2b647

Browse files
committed
catching user history exception
1 parent 7e9c8a6 commit ec2b647

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/WEB-INF/classes/EmberChat/Receiver/Message/User/RequestHistory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public function processMessage(Client $client, \stdClass $message)
2121
{
2222
// get other user
2323
$otherUser = $this->serviceLocator->getUserRepository()->findById($message->user);
24-
new UserHistory($client, $otherUser, $this->serviceLocator);
24+
if($otherUser){
25+
new UserHistory($client, $otherUser, $this->serviceLocator);
26+
}
2527
}
2628
}

0 commit comments

Comments
 (0)