Skip to content

Commit

Permalink
fix(sip-dialout): Fix the successful dialout case when error is null
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 16, 2023
1 parent ba9c441 commit e3c34f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ParticipantService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ public function startDialOutRequest(SIPDialOutService $dialOutService, Room $roo
throw new \InvalidArgumentException('backend');
}

if ($dialOutResponse->dialOut->error->message) {
if ($dialOutResponse->dialOut->error?->message) {
throw new DialOutFailedException(
$dialOutResponse->dialOut->error->code,
$dialOutResponse->dialOut->error->message,
Expand Down

0 comments on commit e3c34f2

Please sign in to comment.