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 86db177ad787afac107a70c730d9ae592158866c..64be24c1ed82ce5b36807dc3fca03c40afb7ddf7 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp |
@@ -438,6 +438,9 @@ public: |
FX_BOOL CPDF_LabCS::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 ++) { |