From bd678678dfc3b4460ed849ae66457dd1cef6dd66 Mon Sep 17 00:00:00 2001 From: Mikhail Voitenko Date: Tue, 9 Jul 2002 11:15:32 +0000 Subject: #100499# Avoid crash --- package/source/manifest/ManifestWriter.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/package/source/manifest/ManifestWriter.cxx b/package/source/manifest/ManifestWriter.cxx index 6cf0ca6fed8d..336545244b0d 100644 --- a/package/source/manifest/ManifestWriter.cxx +++ b/package/source/manifest/ManifestWriter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ManifestWriter.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mtg $ $Date: 2001-11-21 13:48:27 $ + * last change: $Author: mav $ $Date: 2002-07-09 12:15:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -80,6 +80,9 @@ #ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP #include #endif +#ifndef _COM_SUN_STAR_XML_SAX_SAXEXCEPTION_HPP +#include +#endif using namespace ::rtl; using namespace ::com::sun::star::uno; @@ -110,7 +113,13 @@ void SAL_CALL ManifestWriter::writeManifestSequence( const Reference< XOutputStr xSource->setOutputStream ( rStream ); Reference < XDocumentHandler > xHandler ( xSource, UNO_QUERY ); if (xHandler.is()) - ManifestExport aExporter ( xHandler, rSequence); + try { + ManifestExport aExporter ( xHandler, rSequence); + } + catch( SAXException& ) + { + throw RuntimeException(); + } } } -- cgit v1.2.3