summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-26 16:22:10 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:59:26 +0200
commitacaec3f3892a40298f261023fddad9a245e3fabe (patch)
tree31990a4220c28ea3b341c4ca30fc330aee485b73 /dom
parentd2083edba266b9ea19ff5f3d5a9c6e8c5d64ae8f (diff)
downloadUXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar
UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar.gz
UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar.lz
UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar.xz
UXP-acaec3f3892a40298f261023fddad9a245e3fabe.zip
[DOM] Add a null check
Diffstat (limited to 'dom')
-rw-r--r--dom/base/nsScriptLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/nsScriptLoader.cpp b/dom/base/nsScriptLoader.cpp
index 3ac00142d..25482fe7b 100644
--- a/dom/base/nsScriptLoader.cpp
+++ b/dom/base/nsScriptLoader.cpp
@@ -1144,7 +1144,7 @@ nsScriptLoader::InstantiateModuleTree(nsModuleLoadRequest* aRequest)
nsModuleScript* ms = aRequest->mModuleScript;
MOZ_ASSERT(ms);
- if (!ms->ModuleRecord()) {
+ if (!ms || !ms->ModuleRecord()) {
return false;
}