Index: core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp |
index 9e6ca67041e1883981eb66447069c550c8c60a4b..101a1979680b95e37b24fb12c5eb428f140854b4 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp |
@@ -348,6 +348,9 @@ public: |
FX_BOOL CPDF_CalRGB::v_Load(CPDF_Document* pDoc, CPDF_Array* pArray) |
{ |
CPDF_Dictionary* pDict = pArray->GetDict(1); |
+ if (!pDict) |
+ return FALSE; |
+ |
CPDF_Array* pParam = pDict->GetArray(FX_BSTRC("WhitePoint")); |
int i; |
for (i = 0; i < 3; i ++) { |