From fab9d9d815ca25cda6c03b0b3c26ebfa713ea908 Mon Sep 17 00:00:00 2001 From: jinming_wang Date: Fri, 19 Feb 2016 10:01:48 +0800 Subject: fix crashed in FXJSE_Value_Set BUG=pdfium:394 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1704813002 . --- xfa/src/fxfa/src/parser/xfa_script_signaturepseudomodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xfa') 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)); } -- cgit v1.2.3