Index: core/src/fpdftext/fpdf_text_int.cpp |
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp |
index 6baf6ad339824ca2b8fe84cea61efd079f3b4580..873657595218019d6e55d87595b1dd98a17dc5fd 100644 |
--- a/core/src/fpdftext/fpdf_text_int.cpp |
+++ b/core/src/fpdftext/fpdf_text_int.cpp |
@@ -1442,7 +1442,7 @@ FX_INT32 CPDF_TextPage::PreMarkedContent(PDFTEXT_Obj Obj) |
CPDF_ContentMarkItem& item = pMarkData->GetItem(n); |
CFX_ByteString tagStr = (CFX_ByteString)item.GetName(); |
pDict = (CPDF_Dictionary*)item.GetParam(); |
- CPDF_String* temp = (CPDF_String*)pDict->GetElement(FX_BSTRC("ActualText")); |
+ CPDF_String* temp = (CPDF_String*)(pDict ? pDict->GetElement(FX_BSTRC("ActualText")) : NULL); |
if (temp) { |
bExist = TRUE; |
actText = temp->GetUnicodeText(); |