Index: core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
index 70d2340c225a064b8328cd62bbeeb62e001524a4..521ec16be183c6df2bcff2ad7db08aa7da32a9c7 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp |
@@ -788,7 +788,7 @@ int CPDF_DIBSource::StratLoadMask() { |
m_pMaskStream = m_pDict->GetStream("SMask"); |
if (m_pMaskStream) { |
CPDF_Array* pMatte = m_pMaskStream->GetDict()->GetArray("Matte"); |
- if (pMatte != NULL && m_pColorSpace && |
+ if (pMatte && m_pColorSpace && |
(FX_DWORD)m_pColorSpace->CountComponents() <= m_nComponents) { |
FX_FLOAT R, G, B; |
FX_FLOAT* pColor = FX_Alloc(FX_FLOAT, m_nComponents); |