diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-26 16:22:10 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-26 16:22:10 +0100 |
commit | cdc2a22c79d16d9131059d381c1124f65e6dc0dc (patch) | |
tree | 49308ee7d674945311418c33a45f2009bc9741f1 /dom | |
parent | de35c43f12fbab9c9a682210641aab2b235ba8b9 (diff) | |
download | uxp-cdc2a22c79d16d9131059d381c1124f65e6dc0dc.tar.gz |
[DOM] Add a null check
Diffstat (limited to 'dom')
-rw-r--r-- | dom/base/nsScriptLoader.cpp | 2 |
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; } |