From d45435ed3d0fbbd58d43f6a3e11d67cf7bd6a7e0 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Sat, 15 Jan 2022 23:25:48 +0530 Subject: [PATCH] Fix null dereference (#343) --- pkg/rtc/participant.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index e3dde90aa..05fe486be 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -1450,7 +1450,9 @@ func (p *ParticipantImpl) getPendingTrack(clientId string, kind livekit.TrackTyp // if still not found, we are done if trackInfo == nil { p.params.Logger.Errorw("track info not published prior to track", nil, "clientId", clientId) + return signalCid, nil } + return signalCid, trackInfo.TrackInfo }