summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-07-09 11:15:32 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-07-09 11:15:32 +0000
commitbd678678dfc3b4460ed849ae66457dd1cef6dd66 (patch)
treeeaba16215ccbf96547438f40297a315dc5af15cd
parent1fac87f84723a3d6e7e13c091e39b09e0dea1aa5 (diff)
#100499# Avoid crash
-rw-r--r--package/source/manifest/ManifestWriter.cxx15
1 files 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 <com/sun/star/lang/XSingleServiceFactory.hpp>
#endif
+#ifndef _COM_SUN_STAR_XML_SAX_SAXEXCEPTION_HPP
+#include <com/sun/star/xml/sax/SAXException.hpp>
+#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();
+ }
}
}