Skip to content

Commit 6c789ba

Browse files
committed
Fix a bug that caused accessing a null value in the controlbar
1 parent 52a9ab5 commit 6c789ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/akamai/controlbar/ControlBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ var ControlBar = function (dashjsMediaPlayer, displayUTCTimeCodes) {
615615

616616
// Match up the current dashjs text tracks against native video element tracks by ensuring they have matching properties
617617
var _matchTrackWithNativeTrack = function (track, nativeTrack) {
618-
let label = track.id !== undefined ? track.id.toString() : track.lang;
618+
let label = (track.id !== undefined && track.id !== null) ? track.id.toString() : track.lang;
619619

620620
return !!(
621621
(track.kind === nativeTrack.kind) &&

0 commit comments

Comments
 (0)