diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-26 16:22:10 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:59:26 +0200 |
commit | acaec3f3892a40298f261023fddad9a245e3fabe (patch) | |
tree | 31990a4220c28ea3b341c4ca30fc330aee485b73 | |
parent | d2083edba266b9ea19ff5f3d5a9c6e8c5d64ae8f (diff) | |
download | UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar.gz UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar.lz UXP-acaec3f3892a40298f261023fddad9a245e3fabe.tar.xz UXP-acaec3f3892a40298f261023fddad9a245e3fabe.zip |
[DOM] Add a null check
-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 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; } |