summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-12-06 11:07:08 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-12-06 11:07:08 +0000
commitb8213b7f8a8771a0719eb2b9de564cd271cb7ce3 (patch)
tree68324837ab2be25ad3d0b20d9a052b6fa8591b17 /package
parenta8345500f05fbf72ca1dfa6143465d643364e068 (diff)
#94679# fix a crash if the package component is being used to create a new zip file from scratch
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackage.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 5b8cd3f0f108..42bb48083275 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackage.cxx,v $
*
- * $Revision: 1.73 $
+ * $Revision: 1.74 $
*
- * last change: $Author: mtg $ $Date: 2001-12-04 17:52:40 $
+ * last change: $Author: mtg $ $Date: 2001-12-06 12:07:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -769,7 +769,10 @@ void ZipPackage::writeTempFile()
// seek back to the beginning of the temp file so we can read segments from it
xContentSeek->seek ( 0 );
- pZipFile->setInputStream ( xContentStream );
+ if ( pZipFile )
+ pZipFile->setInputStream ( xContentStream );
+ else
+ pZipFile = new ZipFile ( xContentStream, xFactory, sal_False );
}
// XChangesBatch