summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2018-01-28 13:10:59 +0100
committerPale Moon <git-repo@palemoon.org>2018-01-28 13:10:59 +0100
commit3518fbf020c0edabad8cb3463a7e13f4e0b3d035 (patch)
treeca67770954ad757815483ee597049a40b8e313c8 /dom
parent961d0396788462446a5e49504afdd2e259f97227 (diff)
downloadpalemoon-gre-3518fbf020c0edabad8cb3463a7e13f4e0b3d035.tar.gz
Add a null check before NotifyMediaStreamTracksAvailable
Diffstat (limited to 'dom')
-rw-r--r--dom/html/HTMLMediaElement.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp
index 75bfafe1b..d9e500a49 100644
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -3032,6 +3032,9 @@ public:
{
NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
+ if (!mElement) {
+ return;
+ }
mElement->NotifyMediaStreamTracksAvailable(aStream);
}
private: