summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-26 16:22:10 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-02-26 16:22:10 +0100
commitcdc2a22c79d16d9131059d381c1124f65e6dc0dc (patch)
tree49308ee7d674945311418c33a45f2009bc9741f1 /dom
parentde35c43f12fbab9c9a682210641aab2b235ba8b9 (diff)
downloaduxp-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.tar.gz
[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 3ac00142dc..25482fe7b6 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;
}