diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-31 12:51:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-31 13:04:16 +0000 |
commit | a19817c3cafb483fe69ca3a6bc08bb3733ed8a2a (patch) | |
tree | ef4ee5fb35d4e0cb194a745a46c38e8f8f1402c6 | |
parent | b62e428bd1562414e5421804bedb22761432a5d1 (diff) |
coverity#1202803 Explicit null dereferenced
Change-Id: Ia914c4842e69b3ea57692f1f8ac52c321240b7c4
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index a33d7ac382de..4280bb1ccb15 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -6904,6 +6904,9 @@ bool PDFWriterImpl::emitAdditionalStreams() checkAndEnableStreamEncryption( rStream.m_nStreamObject ); com::sun::star::uno::Reference< com::sun::star::io::XOutputStream > xStream( new PDFStreamIf( this ) ); + assert(rStream.m_pStream); + if (!rStream.m_pStream) + return false; rStream.m_pStream->write( xStream ); xStream.clear(); delete rStream.m_pStream; |