diff options
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/fpdfapi/fpdf_objects.h | 2 | ||||
-rw-r--r-- | core/include/fpdfapi/fpdf_resource.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h index 622f39d35f..a41ff087ca 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; diff --git a/core/include/fpdfapi/fpdf_resource.h b/core/include/fpdfapi/fpdf_resource.h index 49e7148ee6..7e9e412325 100644 --- a/core/include/fpdfapi/fpdf_resource.h +++ b/core/include/fpdfapi/fpdf_resource.h @@ -882,7 +882,7 @@ public: CPDF_Dictionary* GetDict() const { - return m_pStream->GetDict(); + return m_pStream? m_pStream->GetDict(): NULL; } CPDF_Dictionary* GetOC() const |