summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-25 13:56:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-25 17:03:49 +0000
commit356263dcdb499631cf642eca869449b374e1f7dd (patch)
tree7681faef636529f8cb275d1ec93de8a1575bdab9 /sdext
parentca276d55ea0c4946d455ffa3ee8693cab1b17160 (diff)
coverity#982468 Unchecked dynamic_cast
Change-Id: Ie98fa4199ebfa96495bdb7fa4582b09926fac8f1
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx2
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;
}
}