diff options
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/tree/imagecontainer.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/tree/imagecontainer.cxx b/sdext/source/pdfimport/tree/imagecontainer.cxx index 650b58446012..64d17c66ef7e 100644 --- a/sdext/source/pdfimport/tree/imagecontainer.cxx +++ b/sdext/source/pdfimport/tree/imagecontainer.cxx @@ -126,12 +126,19 @@ void ImageContainer::writeBase64EncodedStream( ImageId nId, EmitContext& rContex [] (beans::PropertyValue const& v) -> bool { return v.Name == "InputSequence"; })); - OSL_ENSURE( pValue != pAry+nLen, - "InputSequence not found" ); + + if (pValue == pAry + nLen ) + { + SAL_WARN("pdfimport", "InputSequence not found"); + return; + } uno::Sequence<sal_Int8> aData; if( !(pValue->Value >>= aData) ) - OSL_FAIL("Wrong data type"); + { + SAL_WARN("pdfimport", "Wrong data type"); + return; + } rContext.rEmitter.write( encodeBase64( aData.getConstArray(), aData.getLength() )); } |