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 | |
parent | de35c43f12fbab9c9a682210641aab2b235ba8b9 (diff) | |
download | UXP-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.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; } |