Chromium Code Reviews| Index: core/include/fpdfapi/fpdf_objects.h |
| diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h |
| index 622f39d35ff6e9398a4d79c01f926f3318882ecf..a41ff087caeb605edbee60ab0fd53a9b42622145 100644 |
| --- a/core/include/fpdfapi/fpdf_objects.h |
| +++ b/core/include/fpdfapi/fpdf_objects.h |
| @@ -620,7 +620,7 @@ public: |
| CPDF_Dictionary* GetDict() const |
| { |
| - return m_pStream->GetDict(); |
| + return m_pStream? m_pStream->GetDict() : NULL; |
| } |
| FX_LPCBYTE GetData() const; |