diff options
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 6603368ba3fa..c1a8d29f3d06 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -912,7 +912,7 @@ PDFEntry* PDFObject::clone() const { pNewOb->m_pStream = dynamic_cast<PDFStream*>(pNewOb->m_aSubElements[i]); PDFDict* pNewDict = dynamic_cast<PDFDict*>(pNewOb->m_pObject); - if( pNewDict ) + if (pNewDict && pNewOb->m_pStream) pNewOb->m_pStream->m_pDict = pNewDict; } } |