diff options
author | jinming_wang <jinming_wang@foxitsoftware.com> | 2016-02-19 10:01:48 +0800 |
---|---|---|
committer | jinming_wang <jinming_wang@foxitsoftware.com> | 2016-02-19 10:01:48 +0800 |
commit | fab9d9d815ca25cda6c03b0b3c26ebfa713ea908 (patch) | |
tree | 44c9cb3e173684f0d0bbc5a8e121277e9f123f40 /xfa | |
parent | 5634d5d81339500e4836d019c3d3cf6f5002612d (diff) | |
download | pdfium-fab9d9d815ca25cda6c03b0b3c26ebfa713ea908.tar.xz |
fix crashed in FXJSE_Value_Set
BUG=pdfium:394
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1704813002 .
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/src/fxfa/src/parser/xfa_script_signaturepseudomodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xfa/src/fxfa/src/parser/xfa_script_signaturepseudomodel.cpp b/xfa/src/fxfa/src/parser/xfa_script_signaturepseudomodel.cpp index cbaa86f0fd..b0f112ae90 100644 --- a/xfa/src/fxfa/src/parser/xfa_script_signaturepseudomodel.cpp +++ b/xfa/src/fxfa/src/parser/xfa_script_signaturepseudomodel.cpp @@ -90,6 +90,8 @@ void CScript_SignaturePseudoModel::Script_SignaturePseudoModel_Enumerate( } IXFA_Doc* hDoc = pNotify->GetHDOC(); CXFA_NodeList* pList = pNotify->GetDocProvider()->Enumerate(hDoc); + if (!pList) + return; FXJSE_Value_Set(pArguments->GetReturnValue(), m_pDocument->GetScriptContext()->GetJSValueFromMap(pList)); } |