Skip to content

Commit

Permalink
Check for undefined in addHttpRequest (#4368)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Jan 23, 2024
1 parent 28d540b commit 68d82ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/models/MetricsModel.js
Expand Up @@ -144,7 +144,7 @@ function MetricsModel(config) {
// The redirect-to URL or alternative url (where multiple have been
// provided in the MPD) will appear as the actualurl of the next
// entry with the same url value.
if (actualurl && (actualurl !== url)) {
if (actualurl !== null && actualurl !== undefined && (actualurl !== url)) {

// given the above, add an entry for the original request
addHttpRequest(
Expand Down

0 comments on commit 68d82ce

Please sign in to comment.