diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp index e945ab52a0..07b447b1b6 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp @@ -626,7 +626,9 @@ CFX_WideString CPDF_Dictionary::GetUnicodeText(FX_BSTR key, CFX_CharMap* pCharMa if (p) { if(p->GetType() == PDFOBJ_REFERENCE) { p = ((CPDF_Reference*)p)->GetDirect(); - return p->GetUnicodeText(pCharMap); + if (p) { + return p->GetUnicodeText(pCharMap); + } } else { return p->GetUnicodeText(pCharMap); } |