Skip to content

Commit

Permalink
backend: Fixed possible null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Jun 28, 2024
1 parent 2c3b7af commit 687d48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvidu-call-back/src/services/livekit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class LiveKitService {
} catch (error: any) {
this.logger.error(error);

if (error.cause.code === 'ECONNREFUSED') {
if (error?.cause?.code === 'ECONNREFUSED') {
throw errorLivekitIsNotAvailable();
}

Expand Down

0 comments on commit 687d48b

Please sign in to comment.