diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-11-11 16:37:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-11-11 17:00:42 +0100 |
commit | 9decde005bc32c7fa495621548f6310737a89120 (patch) | |
tree | bb895d147eaf1e664ecf6f5c271bda6e54265a07 /sax | |
parent | 0c2206081de38a41597aadfb2255540d6308be63 (diff) |
sax: FastSaxSerializer: cannot do anything without a stream
Change-Id: If2fbfe776039fe1a3104d541279ab52f219f45bf
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index d12e7711acc1..bc2b12e92a9d 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -73,6 +73,7 @@ namespace sax_fastparser { void SAL_CALL FastSaxSerializer::startDocument( ) throw (SAXException, RuntimeException) { + assert(mxOutputStream.is()); // cannot do anything without that if (!mxOutputStream.is()) return; rtl::ByteSequence aXmlHeader((const sal_Int8*) "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n", 56); @@ -186,6 +187,7 @@ namespace sax_fastparser { throw (::com::sun::star::uno::RuntimeException) { mxOutputStream = xOutputStream; + assert(mxOutputStream.is()); // cannot do anything without that } void SAL_CALL FastSaxSerializer::setFastTokenHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler >& xFastTokenHandler ) |