diff options
author | Pale Moon <git-repo@palemoon.org> | 2018-01-28 13:10:59 +0100 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2018-01-28 13:10:59 +0100 |
commit | 3518fbf020c0edabad8cb3463a7e13f4e0b3d035 (patch) | |
tree | ca67770954ad757815483ee597049a40b8e313c8 /dom | |
parent | 961d0396788462446a5e49504afdd2e259f97227 (diff) | |
download | palemoon-gre-3518fbf020c0edabad8cb3463a7e13f4e0b3d035.tar.gz |
Add a null check before NotifyMediaStreamTracksAvailable
Diffstat (limited to 'dom')
-rw-r--r-- | dom/html/HTMLMediaElement.cpp | 3 |
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: |