summaryrefslogtreecommitdiffstats
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
parentde35c43f12fbab9c9a682210641aab2b235ba8b9 (diff)
downloadUXP-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.tar
UXP-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.tar.gz
UXP-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.tar.lz
UXP-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.tar.xz
UXP-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.zip
[DOM] Add a null check
-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;
}